TensorInitializer

class TensorInitializer<T : DType, V>(dtype: KClass<T>, shape: Shape, initType: InitializationType<V>)(source)

Initializer that holds the complete tensor specification

Constructors

Link copied to clipboard
constructor(dtype: KClass<T>, shape: Shape, initType: InitializationType<V>)

Functions

Link copied to clipboard
fun build(executionContext: ExecutionContext): Tensor<T, V>

Build the actual tensor with the specified initialization