reshape

fun reshape(a: Tensor<*, *>, newShape: IntArray): Tensor<*, *>(source)

Reshape the tensor to the given dimensions.