AsTensorΒΆ
Converts data into a tensor, sharing data and preserving autograd history if possible.
Abstract Signature:
AsTensor(data, dtype: dtype, device: Device)
Converts data into a tensor, sharing data and preserving autograd history if possible.
Abstract Signature:
AsTensor(data, dtype: dtype, device: Device)