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

Method node_def

tensorflow/python/framework/ops.py:2264–2279  ·  view source on GitHub ↗

Returns the `NodeDef` representation of this operation. Returns: A [`NodeDef`](https://www.tensorflow.org/code/tensorflow/core/framework/node_def.proto) protocol buffer.

(self)

Source from the content-addressed store, hash-verified

2262
2263 @property
2264 def node_def(self):
2265 # pylint: disable=line-too-long
2266 """Returns the `NodeDef` representation of this operation.
2267
2268 Returns:
2269 A
2270 [`NodeDef`](https://www.tensorflow.org/code/tensorflow/core/framework/node_def.proto)
2271 protocol buffer.
2272 """
2273 # pylint: enable=line-too-long
2274 with c_api_util.tf_buffer() as buf:
2275 c_api.TF_OperationToNodeDef(self._c_op, buf)
2276 data = c_api.TF_GetBuffer(buf)
2277 node_def = node_def_pb2.NodeDef()
2278 node_def.ParseFromString(compat.as_bytes(data))
2279 return node_def
2280
2281 @property
2282 def _node_def(self):

Callers 3

ValidateSavedTensorsFunction · 0.45
SummarizeGraphFunction · 0.45

Calls 1

ParseFromStringMethod · 0.45

Tested by

no test coverage detected