MCPcopy
hub / github.com/mosaicml/composer / write

Method write

composer/metrics/map.py:55–57  ·  view source on GitHub ↗
(self, buf: str)

Source from the content-addressed store, hash-verified

53 """Logging class to move logs to log.debug()."""
54
55 def write(self, buf: str) -> None: # skipcq: PY-D0003, PYL-R0201
56 for line in buf.rstrip().splitlines():
57 log.debug(line.rstrip())
58
59 def flush(self) -> None: # skipcq: PY-D0003, PYL-R0201
60 for handler in log.handlers:

Callers 15

read_dataMethod · 0.45
download_checkpointFunction · 0.45
_get_fileFunction · 0.45
create_symlink_fileFunction · 0.45
validate_credentialsFunction · 0.45
write_signal_fileFunction · 0.45
download_objectMethod · 0.45
_download_partMethod · 0.45
download_objectMethod · 0.45
download_objectMethod · 0.45
oom_observerMethod · 0.45

Calls

no outgoing calls

Tested by 15

initMethod · 0.36
batch_endMethod · 0.36
initMethod · 0.36
batch_endMethod · 0.36
test_compressorFunction · 0.36
test_get_file_local_pathFunction · 0.36