|
|
@@ -71,7 +71,9 @@ if sys.platform == "win32": |
|
|
|
|
|
|
|
kernel32.SetErrorMode(old_error_mode) |
|
|
|
|
|
|
|
from .core._imperative_rt.core2 import release_trace_apply_func, sync, full_sync |
|
|
|
from .core._imperative_rt.core2 import full_sync as _full_sync |
|
|
|
from .core._imperative_rt.core2 import release_trace_apply_func |
|
|
|
from .core._imperative_rt.core2 import sync as _sync |
|
|
|
from .core._imperative_rt.utils import _set_fork_exec_path_for_timed_func |
|
|
|
from .device import * |
|
|
|
from .logger import enable_debug_log, get_logger, set_log_file, set_log_level |
|
|
@@ -89,10 +91,9 @@ _set_fork_exec_path_for_timed_func( |
|
|
|
_persistent_cache_impl_ins = persistent_cache.PersistentCacheOnServer() |
|
|
|
_persistent_cache_impl_ins.reg() |
|
|
|
|
|
|
|
atexit.register(sync) |
|
|
|
atexit.register(_full_sync) |
|
|
|
atexit.register(release_trace_apply_func) |
|
|
|
|
|
|
|
del sync |
|
|
|
del release_trace_apply_func |
|
|
|
del _set_fork_exec_path_for_timed_func |
|
|
|
del _persistent_cache_impl_ins |
|
|
|