Skip to content

metatensor supports astype(dtype, device) #4636

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
would be great to support astype API like numpy's astype https://numpy.org/doc/stable/reference/generated/numpy.ndarray.astype.html

astype(dtype) the dtype could be numpy based (and detach if needed when it's from a torch.tensor), as well as torch based.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions