Skip to content

[doc]Wrong example for torch.as_tensor #9914

@zetayue

Description

@zetayue

The example shown under torch.as_tensor doesn't mention 'torch.as_tensor' at all. Actually, the last part of it is the same as the example of torch.from_numpy:

https://pytorch.org/docs/stable/torch.html?highlight=torch%20as_tensor#torch.as_tensor

Metadata

Metadata

Assignees

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