(enable=True)
| 20 | |
| 21 | @contextmanager |
| 22 | def checkpointing(enable=True): |
| 23 | try: |
| 24 | old_checkpointing, state.checkpointing = state.checkpointing, enable |
| 25 | yield |
| 26 | finally: |
| 27 | state.checkpointing = old_checkpointing |
| 28 | |
| 29 | |
| 30 | def get_checkpointing(): |
nothing calls this directly
no outgoing calls
no test coverage detected