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

Automatic tensor type conversion #154

Open
NanyangYe opened this issue Apr 7, 2018 · 0 comments
Open

Automatic tensor type conversion #154

NanyangYe opened this issue Apr 7, 2018 · 0 comments

Comments

@NanyangYe
Copy link

I found a problem when I use the cuda tensor as the default one.
Even when I set:
torch.set_default_tensor_type('torch.cuda.FloatTensor')
input x (numpy.float) y (torch.cuda.tensor)
output x*y is torch.float.tensor

Is this a feature or a bug. It might be more convenient if the programme behaves as the default setting.
Many thanks

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

No branches or pull requests

1 participant