Skip to content

Automatic tensor type conversion #154

Description

@NanyangYe

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions