tensorOf
fun <T : DType, V> tensorOf(shape: Shape, dtype: KClass<T>, vararg values: Float): Tensor<T, V>(source)
Deprecated
Use tensor { shape(...) { from(...) } } or similar DSL
Replace with
tensor(dtype) { shape(shape) { from(*values) } }Content copied to clipboard
Create a tensor with specific shape and values.