Converts a tensor to an object.
The tensor
const result = Chalkboard.tens.toObject([[1, 2], [3, 4]]); // Returns a nested object Copy
const result = Chalkboard.tens.toObject([[1, 2], [3, 4]]); // Returns a nested object
Converts a tensor to an object.