tf.make_ndarray

Create a numpy ndarray from a tensor.

Main aliases

`tf.contrib.util.make_ndarray`

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.make_ndarray, `tf.compat.v2.make_ndarray`

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.