Unload app. Both on engine side and python side. Set the key to None.
(self)
| 469 | return self._session._wrapper(self._app_node._unload()) |
| 470 | |
| 471 | def __del__(self): |
| 472 | """Unload app. Both on engine side and python side. Set the key to None.""" |
| 473 | try: |
| 474 | self.session.run(self._unload()) |
| 475 | except Exception: # pylint: disable=broad-except |
| 476 | pass |
| 477 | |
| 478 | def __call__(self, *args, **kwargs): |
| 479 | return self._session._wrapper(self._app_node(*args, **kwargs)) |