DenseTensorDataFactory
Low level DenseTensorDataFactory factories.
Functions
Creates a tensor from byte array data for various data types.
Creates a tensor from float array with specified data type (overloaded version).
Creates a tensor from int array with specified data type.
Wraps a ByteArray without copying. The caller must ensure the array is not mutated while the returned TensorData is in use. Default implementation falls back to fromByteArray (which copies).
Wraps a FloatArray without copying. The caller must ensure the array is not mutated while the returned TensorData is in use. Default implementation falls back to fromFloatArray (which copies).
Wraps an IntArray without copying. The caller must ensure the array is not mutated while the returned TensorData is in use. Default implementation falls back to fromIntArray (which copies).