full

fun <T : DType> full(shape: Shape, value: Number, dtype: T): TensorData<T, *>(source)

Creates a tensor filled with a constant value for the specified dtype.

Return

TensorData filled with the constant value

Parameters

T

the data type constraint extending DType

shape

the shape of the tensor to create

value

the constant value to fill the tensor with

dtype

the data type instance


open override fun <T : DType, V> full(shape: Shape, dtype: KClass<T>, value: Number): TensorData<T, V>(source)