tango icon indicating copy to clipboard operation
tango copied to clipboard

Enable torch.Tensor input args from config

Open lgatys opened this issue 2 years ago • 0 comments

🚀 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 upgrade List to Tensor when constructing the object from the config.

Alternatives

No response

Additional context

No response

lgatys avatar Aug 31 '22 03:08 lgatys