MCPcopy
hub / github.com/MrNothing/AI-Blocks / Log

Function Log

Sources/build_scripts/global_functions.py:15–23  ·  view source on GitHub ↗
(msg, flush=True, ignore_errors=False)

Source from the content-addressed store, hash-verified

13NaN = None
14
15def Log(msg, flush=True, ignore_errors=False):
16 if ignore_errors:
17 print (msg.encode(sys.stdout.encoding, errors='replace'))
18 else:
19 print (msg)
20
21 if EDITOR_MODE:
22 sys.stderr.flush()
23 sys.stdout.flush()
24
25
26def LogErr(msg, flush=False):

Callers 15

RunFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85
CIFAR10_loader.pyFile · 0.85
loadAllFilesFunction · 0.85
loadFileFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85
RunFunction · 0.85

Calls

no outgoing calls

Tested by 1

RunFunction · 0.68