Module Ptree.Tensor
val dtype : tensor -> Nx_core.Dtype.packeddtype t is t's dtype.
val shape : tensor -> int arrayshape t is t's shape.
val numel : tensor -> intnumel t is the number of elements in t.
to_typed dtype t is Some x iff t has dtype dtype, with x the typed tensor. It is None on dtype mismatch.