MCPcopy Create free account
hub / github.com/XingangPan/DragGAN / flush

Method flush

dnnlib/util.py:93–98  ·  view source on GitHub ↗

Flush written text to both stdout and a file, if open.

(self)

Source from the content-addressed store, hash-verified

91 self.flush()
92
93 def flush(self) -> None:
94 """Flush written text to both stdout and a file, if open."""
95 if self.file is not None:
96 self.file.flush()
97
98 self.stdout.flush()
99
100 def close(self) -> None:
101 """Flush, close possible files, and remove stdout/stderr mirroring."""

Callers 3

writeMethod · 0.95
closeMethod · 0.95
training_loopFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected