Skip to content

unsupported Python type error from set_default_tensor_type() #4784

@jinserk

Description

@jinserk

Hi,
I've updated pytorch to the lastest master (a54407a7) from github, but got an error when I use torch.set_default_tensor_type("torch.cuda.FloatTensor"):

terminate called after throwing an instance of 'std::invalid_argument'
  what():  unsupported Python type
Aborted (core dumped)

What to do for workaround? Thanks!
Jin

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