scalar

fun <T : DType, V> scalar(value: V): TensorData<T, V>(source)

Creates a scalar tensor from a single value.