We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d272d commit bf54de8Copy full SHA for bf54de8
nequip/data/AtomicData.py
@@ -157,9 +157,12 @@ def _process_dict(kwargs, ignore_fields=[]):
157
# ^ this tensor is a scalar; we need to give it
158
# a data dimension to play nice with irreps
159
kwargs[k] = v
160
+ elif isinstance(v, torch.Tensor):
161
+ # This is a tensor, so we just don't do anything except avoid the warning in the `else`
162
+ pass
163
else:
164
warnings.warn(
- f"Value for field {k} was of unsupported type {type(k)} (value was {v})"
165
+ f"Value for field {k} was of unsupported type {type(v)} (value was {v})"
166
)
167
168
if AtomicDataDict.BATCH_KEY in kwargs:
0 commit comments