Tensorflow.js tf.print() Function
The tf.print() function is used to print information about the tf.tensor along with its data.
tf.print (x, verbose)
- x: The tensor which is to be printed
- verbose: It is an optional argument. These are the boolean parameter which decides whether to print the verbose information about the Tensor, including dtype and size.
Return: It returns nothing i.e, void.
Tensor dtype: float32 rank: 2 shape: [2,2] values: [[8, 2], [5, 6]]
Tensor [[8, 2], [5, 6]]
My Personal Notes arrow_drop_up
Please Login to comment...