Defines utilities for the torch backend.
Bases: Protocol
Protocol
An operator that acts on an array.
Convert dtype to torch dtype.
dtype (type[Any] | dtype[Any] | _SupportsDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str | None | dtype) – dtype which could be a python type, a numpy dtype, or already a torch dtype
A proper dtype for torch
torch.dtype