Save the date! Google I/O returns May 18-20 Register now

tf.make_ndarray

TensorFlow 2 version View source on GitHub

Create a numpy ndarray from a tensor.

Create a numpy ndarray with the same shape and data as the tensor.

tensor A TensorProto.

A numpy array with the tensor contents.

TypeError if tensor has unsupported type.