You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an object has an input argument of type torch.Tensor it currently cannot be constructed from jsonnet configs since the array-type from jsonnet is parsed into a python list.
Ideally the FromParams class could upgrade List to Tensor when constructing the object from the config.
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
🚀 The feature, motivation and pitch
If an object has an input argument of type
torch.Tensor
it currently cannot be constructed from jsonnet configs since the array-type from jsonnet is parsed into a python list.Ideally the
FromParams
class could upgradeList
toTensor
when constructing the object from the config.Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: