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

Method _get_resource_handle

tensorflow/python/ops/session_ops.py:69–77  ·  view source on GitHub ↗

The ResourceHandle representation of this handle.

(self)

Source from the content-addressed store, hash-verified

67 return self._handle
68
69 def _get_resource_handle(self):
70 """The ResourceHandle representation of this handle."""
71 if not self._resource_handle:
72 self._resource_handle = resource_handle_pb2.ResourceHandleProto()
73 self._resource_handle.device = self._handle.split(";")[-1]
74 self._resource_handle.container = (
75 pywrap_tensorflow_internal.TENSOR_HANDLE_KEY)
76 self._resource_handle.name = self._handle
77 return self._resource_handle
78
79 def to_numpy_array(self):
80 """Convert a TensorHandle object to a feedable numpy value.

Callers 1

to_numpy_arrayMethod · 0.95

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected