tf.contrib.util.make_ndarray()

tf.contrib.util.make_ndarray(tensor)

Create a numpy ndarray from a tensor.

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

Args:
  • tensor: A TensorProto.
Returns:

A numpy array with the tensor contents.

Raises:
  • TypeError: if tensor has unsupported type.
doc_TensorFlow
2016-10-14 13:07:33
Comments
Leave a Comment

Please login to continue.