TensorDataFactory

Interface for tensor data factory used by the DSL

Inheritors

Functions

Link copied to clipboard
abstract fun <T : DType, V> fromByteArray(shape: Shape, dtype: KClass<T>, data: ByteArray): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> fromFloatArray(shape: Shape, dtype: KClass<T>, data: FloatArray): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> fromIntArray(shape: Shape, dtype: KClass<T>, data: IntArray): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> full(shape: Shape, dtype: KClass<T>, value: Number): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> init(shape: Shape, dtype: KClass<T>, generator: (indices: IntArray) -> V): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> ones(shape: Shape, dtype: KClass<T>): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> randn(shape: Shape, dtype: KClass<T>, mean: Float, std: Float, random: Random): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> randomInit(shape: Shape, dtype: KClass<T>, generator: (random: Random) -> V, random: Random): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> uniform(shape: Shape, dtype: KClass<T>, min: Float, max: Float, random: Random): TensorData<T, V>
Link copied to clipboard
abstract fun <T : DType, V> zeros(shape: Shape, dtype: KClass<T>): TensorData<T, V>