MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / to_numpy_array

Method to_numpy_array

tensorflow/python/ops/session_ops.py:79–86  ·  view source on GitHub ↗

Convert a TensorHandle object to a feedable numpy value. Returns: A numpy array of a custom struct type that can be used as a feed value to run().

(self)

Source from the content-addressed store, hash-verified

77 return self._resource_handle
78
79 def to_numpy_array(self):
80 """Convert a TensorHandle object to a feedable numpy value.
81
82 Returns:
83 A numpy array of a custom struct type that can be used as a feed value
84 to run().
85 """
86 return encode_resource_handle(self._get_resource_handle())
87
88 @property
89 def handle(self):

Callers 1

_runMethod · 0.80

Calls 2

_get_resource_handleMethod · 0.95
encode_resource_handleFunction · 0.85

Tested by

no test coverage detected