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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setters for non-tensor initialization values #630

Merged
merged 1 commit into from Apr 9, 2019
Merged

Conversation

Balandat
Copy link
Collaborator

@Balandat Balandat commented Apr 9, 2019

Previously, if a model was on cuda or using double, these setters would error out when trying to set a value using a python float. This fixes the issue by moving the constructed tensor to the right device/dtype.

Previously, if a model was on cuda or using double, these setters woudl
error out when trying to set a value using a python float. This fixes
the issue by moving the constructed tensor to the right device/dtype.
@Balandat Balandat added the bug label Apr 9, 2019
@Balandat Balandat merged commit 0cbec2c into master Apr 9, 2019
@Balandat Balandat deleted the fix_setters branch April 9, 2019 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant