mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 19:04:03 +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 sys
|
||||
import time
|
||||
from typing import Callable, Dict
|
||||
from typing import Callable
|
||||
|
||||
from omegaconf import DictConfig
|
||||
|
||||
@@ -32,12 +32,8 @@ def time_function(func: Callable) -> Callable:
|
||||
return wrapper
|
||||
|
||||
|
||||
def flush_profiler(config: Dict):
|
||||
"""Method that checks if profiler is enabled before flushing
|
||||
|
||||
Args:
|
||||
config (Dict): config check
|
||||
"""
|
||||
def flush_profiler(config: DictConfig):
|
||||
"""Method that checks if profiler is enabled before flushing"""
|
||||
if config.enable_profiler and PROFILER:
|
||||
PROFILER[0].print_profile()
|
||||
|
||||
|
||||
Reference in new issue
Block a user