mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
update lint error
This commit is contained in:
1 parent
a9b069775f
commit
98a74c67de
1 file changed
+3
-7
@@ -4,7 +4,7 @@ Profiler base class and functionality
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from typing import Callable, Dict
|
from typing import Callable
|
||||||
|
|
||||||
from omegaconf import DictConfig
|
from omegaconf import DictConfig
|
||||||
|
|
||||||
@@ -32,12 +32,8 @@ def time_function(func: Callable) -> Callable:
|
|||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
def flush_profiler(config: Dict):
|
def flush_profiler(config: DictConfig):
|
||||||
"""Method that checks if profiler is enabled before flushing
|
"""Method that checks if profiler is enabled before flushing"""
|
||||||
|
|
||||||
Args:
|
|
||||||
config (Dict): config check
|
|
||||||
"""
|
|
||||||
if config.enable_profiler and PROFILER:
|
if config.enable_profiler and PROFILER:
|
||||||
PROFILER[0].print_profile()
|
PROFILER[0].print_profile()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user