AsTensor ======== Converts data into a tensor, sharing data and preserving autograd history if possible. **Abstract Signature:** ``AsTensor(data, dtype: dtype, device: Device)`` .. raw:: html
torch.as_tensor
jax.numpy.array
numpy.asarray
keras.ops.convert_to_tensor
tf.convert_to_tensor
mlx.core.array