Expand description
Dynamic-length tensor implementation.
Structs§
- Tensor
DynLen - Tensor with dynamic rank (number of indices) and dynamic scalar type.
Traits§
- Random
Scalar - Trait for scalar types that can generate random values from a standard normal distribution.
- Tensor
Access - Trait for accessing tensor index metadata.
Functions§
- compute_
permutation_ from_ indices - Compute the permutation array from original indices to new indices.
- diag_
tensor_ dyn_ len - Create a diagonal tensor with dynamic rank from diagonal data.
- unfold_
split - Unfold a tensor into a matrix by splitting indices into left and right groups.