Tensorflow.js tf.Tensor class .arraySync() Method
The tf.Tensor class .arraySync() method is used to return the tensor data as a nested array.
Parameters: It does not accept any parameters.
Return Value: It returns number.
Example 1: Creating a 2d tensor.
[[0, 1], [2, 3]]
[1, 3, 5, 4, 2]