Skip to content

Advanced Indexing Error #2316

@snowyday

Description

@snowyday

Grateful thanks for new various features!

Advanced Indexing does not support vector?:

>>> x = torch.Tensor(5)
>>> x[[0, 3]]

Traceback (most recent call last):
File "", line 1, in
TypeError: indexing a tensor with an object of type list. The only supported types are integers, slices,, numpy scalars and torch.LongTensor or torch.ByteTensor as the only argument.

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