Skip to content

Incorrect named tensor example #27848

@zou3519

Description

@zou3519

https://pytorch.org/docs/stable/named_tensor.html#explicit-alignment-by-names

scale = torch.randn(num_channels, names='C')

should be scale = torch.randn(num_channels, names=['C'])

cc @zou3519

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: docsRelated to our documentation, both in docs/ and docblocksmodule: named tensorNamed tensor support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions