The operation that failed, if known. *N.B.* If the failed op was synthesized at runtime, e.g. a `Send` or `Recv` op, there will be no corresponding @{tf.Operation} object. In that case, this will return `None`, and you should instead use the @{tf.OpError.nod
(self)
| 52 | |
| 53 | @property |
| 54 | def op(self): |
| 55 | """The operation that failed, if known. |
| 56 | |
| 57 | *N.B.* If the failed op was synthesized at runtime, e.g. a `Send` |
| 58 | or `Recv` op, there will be no corresponding |
| 59 | @{tf.Operation} |
| 60 | object. In that case, this will return `None`, and you should |
| 61 | instead use the @{tf.OpError.node_def} to |
| 62 | discover information about the op. |
| 63 | |
| 64 | Returns: |
| 65 | The `Operation` that failed, or None. |
| 66 | """ |
| 67 | return self._op |
| 68 | |
| 69 | @property |
| 70 | def error_code(self): |
no outgoing calls