Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable torch.Tensor input args from config #376

Open
lgatys opened this issue Aug 31, 2022 · 0 comments
Open

Enable torch.Tensor input args from config #376

lgatys opened this issue Aug 31, 2022 · 0 comments

Comments

@lgatys
Copy link
Contributor

lgatys commented Aug 31, 2022

馃殌 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant