Tensor¤
Tensor
¤
Tensor(
data: Union[
None,
ConstType,
UOp,
bytes,
List,
Tuple,
LazyBuffer,
MultiLazyBuffer,
"np.ndarray",
Path,
],
device: Optional[Union[str, tuple, list]] = None,
dtype: Optional[DTypeLike] = None,
requires_grad: Optional[bool] = None,
)
Bases: SimpleMathTrait
A Tensor
is a multi-dimensional matrix containing elements of a single data type.