(self, task)
| 518 | " decorating it directly with @tf.function.".format(task)) |
| 519 | |
| 520 | def _disallow_in_graph_mode(self, task): |
| 521 | raise errors.OperatorNotAllowedInGraphError( |
| 522 | "{} is not allowed in Graph execution. Use Eager execution or decorate" |
| 523 | " this function with @tf.function.".format(task)) |
| 524 | |
| 525 | def _disallow_bool_casting(self): |
| 526 | if ag_ctx.control_status_ctx().status == ag_ctx.Status.DISABLED: |
no test coverage detected