Returns the `NodeDef` representation of this operation. Returns: A [`NodeDef`](https://www.tensorflow.org/code/tensorflow/core/framework/node_def.proto) protocol buffer.
(self)
| 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): |
no test coverage detected