Google I/O is a wrap! Catch up on TensorFlow sessions View sessions

tf.make_ndarray

TensorFlow 1 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.