Commit a637c6cc authored by Mo Mo's avatar Mo Mo Committed by Facebook GitHub Bot
Browse files

fix more typo

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/631

omm -> oom

Reviewed By: EugenHotaj, wat3rBro

Differential Revision: D50860125

fbshipit-source-id: 553220106aed1c8c752347a7a5c01b525ec25588
parent 2653e226
...@@ -31,7 +31,7 @@ def add_zoomer_default_config(_C: CN): ...@@ -31,7 +31,7 @@ def add_zoomer_default_config(_C: CN):
_C.ZOOMER.ENABLE_MEMORY_PROFILING = False _C.ZOOMER.ENABLE_MEMORY_PROFILING = False
def omm_logger_wrapper(output_dir): def oom_logger_wrapper(output_dir):
def oom_logger( def oom_logger(
device: int, alloc: int, device_alloc: int, device_free: int device: int, alloc: int, device_alloc: int, device_free: int
) -> None: ) -> None:
...@@ -108,5 +108,5 @@ def attach_oom_logger(output_dir, trace_max_entries=1000000) -> None: ...@@ -108,5 +108,5 @@ def attach_oom_logger(output_dir, trace_max_entries=1000000) -> None:
return return
record_memory_history(trace_max_entries) record_memory_history(trace_max_entries)
torch._C._cuda_attach_out_of_memory_observer(omm_logger_wrapper(output_dir)) torch._C._cuda_attach_out_of_memory_observer(oom_logger_wrapper(output_dir))
logger.info("Attached GPU OOM logger") logger.info("Attached GPU OOM logger")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment