MCPcopy Create free account
hub / github.com/alibaba/nann / MakeNdarray

Function MakeNdarray

tensorflow/tensorflow/python/framework/tensor_util.py:563–629  ·  view source on GitHub ↗

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.

(tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_ConstantValueFunction · 0.85

Calls 5

complexFunction · 0.85
TypeErrorFunction · 0.85
reshapeMethod · 0.80
copyMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected