Expand description
Tensor types for zero-copy data exchange with CoreML.
Structs§
Enums§
- Data
Type - Numeric data types supported by CoreML tensors.
Traits§
Functions§
- compute_
strides - Computes row-major strides for a tensor with the given shape.
- element_
count - Returns the total number of elements for a tensor with the given shape.
- validate_
shape - Validates that
data_lenmatches the element count implied byshape.