Skip to content

the problem of torch.index() function in pytorch-0.4.0 #7639

@Dataphz

Description

@Dataphz

a = torch.FloatTensor(5)
a.index(3)
The above code is running right in pytorch-0.3, but is wrong in pytorch-0.4,
TyreError: index(): argument "indices" (position 1) must be tuple of Tensors, not int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: docsRelated to our documentation, both in docs/ and docblocks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions