shape

fun shape(vararg dimensions: Int): ShapeBuilder<T, V>(source)

Creates a tensor with specified shape and initialization strategy


fun shape(shape: Shape): ShapeBuilder<T, V>(source)

Creates a tensor with specified shape