Prints a tensor in the console.