mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
Eng/distributed training (#27)
* added checkpointing logic * small nits
This commit is contained in:
1 parent
ba7a2c33c4
commit
bf3b77f952
3 files changed
+62
-31
No files matched your search
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Decorator definitions
|
||||
"""
|
||||
from typing import Callable
|
||||
|
||||
|
||||
def check_main_thread(func: Callable) -> Callable:
|
||||
"""Declarator: check if you are on main thread"""
|
||||
|
||||
def wrapper(self, *args, **kwargs):
|
||||
if self.is_main_thread:
|
||||
func(self, *args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
Reference in new issue
Block a user