ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


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.