mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
rename to KernelContext and move the linearize_sched comment [pr] (#8899)
* rename to KernelContext and move that comment [pr] * 500
This commit is contained in:
@@ -19,7 +19,7 @@ os.environ["RUN_PROCESS_REPLAY"] = "0"
|
||||
os.environ["CAPTURE_PROCESS_REPLAY"] = "0"
|
||||
early_stop = multiprocessing.Event()
|
||||
logging.basicConfig(level=logging.INFO, format="%(message)s")
|
||||
MAX_LINES = 1_000
|
||||
MAX_LINES = 500
|
||||
def trunc_log(x):
|
||||
if len(lines:=repr(x).splitlines()) > MAX_LINES: lines = lines[:MAX_LINES]+[f"WARN: truncated string with {len(lines)} lines"]
|
||||
logging.info("\n".join(lines))
|
||||
|
||||
Reference in New Issue
Block a user