Skip to content

Accessing individual elements of a tensor #233

@trisct

Description

@trisct

I am writing a c++ extension for pytorch where I need to access individual elements of a tensor, and maybe convert it to a standard c++ type such as float. How can I do this?

I think this was raised as Issue #5 but I cannot find any example or documentation that mentions this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions