Re-exports§
Modules§
- identity
- index_
offset_ contiguous - index_
offset_ contiguous_ fastdivmod - index_
offset_ with_ layout - layout
- view
- virtual
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
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.