Skip to content

Support reinterpret of a torchTensor as Tensor<MyStructType, N> #522

@csyonghe

Description

@csyonghe

This is particularly useful for porting slang-torch code over, and for developers who wish to have more structure in the Slang code that interprets the last dimension of a tensor in a named, meaningful way.

We can warn that this may lead to platform-dependent behavior because data layout can change between different platforms.

The user is at their own risk when using this feature.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions