tensorOf

fun tensorOf(vararg values: Float): FloatTensor

Create a FloatTensor from variable length parameters of type Float. The FloatTensor that is returned is a 1D array.


fun tensorOf(values: List<Float>): FloatTensor

Create a FloatTensor from the list of values given.


fun tensorOf(vararg values: DScalar): DTensor

Create a DTensor from variable length parameters of type DScalar values.


fun tensorOf(values: List<DScalar>): DTensor

Create a DTensor from the list of DScalar.