Re-exports§
Modules§
- identity
- index_offset_ contiguous 
- index_offset_ contiguous_ fastdivmod 
- index_offset_ with_ layout 
- layout
- view
- virtual
Structs§
- TensorHandle 
- Tensor representation containing a server handle as well as basic tensor metadata.,
Enums§
- MatrixBatch Layout 
- Layout for matrix batch tensors, i.e. tensors whose interpretation is a bunch of batched matrices of 2 dimensions
Constants§
Functions§
- compact_strides 
- index_offset_ contiguous 
- Returns the offset of the tensor corresponding to a contiguous layout.
- index_offset_ contiguous_ fastdivmod 
- 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_ packed 
- Make a jit tensor contiguous, using the pitched allocator if available.
See create_tensor.
Handles unpacking and repacking packed tensors (i.e. quantized values).
shaperefers to the actual (unpacked) shape of the tensor, whilepackingspecifies the number of elements in each storage element.
- into_contiguous_ packed_ ref 
- Make a jit tensor contiguous.
- into_contiguous_ pitched 
- Make a jit tensor contiguous, using the pitched allocator if available. See create_tensor.
- into_contiguous_ ref 
- Make a jit tensor contiguous.
- is_contiguous 
- Checks if the tensor associated with the given shape and strides is contiguous.
- is_contiguous_ pitched 
- Checks if a tensor is only strided on the last dimension, and could be safely reinterpreted as a 2D tensor with unit stride on the last dimension. This will always hold for non-permuted tensors allocated on a runtime.
- matrix_batch_ layout 
- Return the layout of a matrix batch given the strides.