mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-09 13:00:52 +00:00
update examples and sphnix docs for the new api (#63)
This commit is contained in:
@@ -34,6 +34,10 @@ def report_memory_usage(message, logger=None, report_cpu=False):
|
||||
|
||||
:param message: a prefix message to add in the log
|
||||
:type message: str
|
||||
:param logger: an instance of :class:`colossalai.logging.DistributedLogger`
|
||||
:type logger: :class:`colossalai.logging.DistributedLogger`
|
||||
:param report_cpu: whether to report CPU memory
|
||||
:type report_cpu: bool
|
||||
:raises EnvironmentError: raise error if no distributed environment has been initialized
|
||||
'''
|
||||
if not gpc.is_initialized(ParallelMode.GLOBAL):
|
||||
|
Reference in New Issue
Block a user