Expand description
Contains basic tensor helpers.
Re-exports§
pub use identity::*;
Modules§
Structs§
- Tensor
Handle - Tensor representation containing a server handle as well as basic tensor metadata.,
Enums§
- Matrix
Batch Layout - Layout for matrix batch tensors, i.e. tensors whose interpretation is a bunch of batched matrices of 2 dimensions
- Strided
Layout - Layout for tensor that may or may not be strided on the last dimension. Efficiently translates the absolute index to strided index.
- Strided
Layout Args - Strided
Layout Compilation Arg - Strided
Layout Expand
Functions§
- index_
offset_ contiguous - Returns the offset of the tensor corresponding to a contiguous layout.
- index_
offset_ with_ layout - Returns the offset of the tensor corresponding to the layout tensor.
- into_
contiguous - Make a jit tensor contiguous.
- into_
contiguous_ pitched - Make a jit tensor contiguous, using the pitched allocator if available. See create_tensor.
- into_
contiguous_ prefetch - Make a jit tensor contiguous.
- matrix_
batch_ layout - Return the layout of a matrix batch given the strides.