r'''Update params in context.
(cls, **kwargs)
| 93 | @classmethod |
| 94 | @contextlib.contextmanager |
| 95 | def scope(cls, **kwargs): |
| 96 | r'''Update params in context. |
| 97 | ''' |
| 98 | prev_kwargs = {} |
| 99 | try: |
| 100 | c = cls.get() |
| 101 | yield c |
| 102 | finally: |
| 103 | del prev_kwargs |
| 104 | |
| 105 | @classmethod |
| 106 | def get_tf_config(cls): |