Context-manager to disable eager execution for the current thread.
()
| 1629 | |
| 1630 | |
| 1631 | def graph_mode(): |
| 1632 | """Context-manager to disable eager execution for the current thread.""" |
| 1633 | return context()._mode(GRAPH_MODE) # pylint: disable=protected-access |
| 1634 | |
| 1635 | |
| 1636 | def eager_mode(): |