tf.make_ndarray

View source

金铨达配资Create a numpy ndarray from a tensor.

Aliases:

  • tf.compat.v1.make_ndarray
  • tf.compat.v2.make_ndarray
tf.make_ndarray(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.

results matching ""

    No results matching ""