Context-manager to enable eager execution for the current thread.
()
| 1634 | |
| 1635 | |
| 1636 | def eager_mode(): |
| 1637 | """Context-manager to enable eager execution for the current thread.""" |
| 1638 | return context()._mode(EAGER_MODE) # pylint: disable=protected-access |
| 1639 | |
| 1640 | |
| 1641 | # TODO(agarwal): get rid of this and use ops.name_scope instead. |