mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-30 17:28:24 -05:00
default skip all exception in beam (#4822)
added a flag `BEAM_STRICT_MODE` to catch compile error or other exceptions on demand
This commit is contained in:
@@ -70,6 +70,9 @@ def _try_compile_linearized_w_idx(x:Tuple[int,Linearizer], compiler:Compiler) ->
|
||||
ret = None
|
||||
except TimeoutException:
|
||||
ret = None
|
||||
except Exception as e:
|
||||
if getenv("BEAM_STRICT_MODE"): raise e
|
||||
ret = None
|
||||
finally:
|
||||
signal.alarm(0)
|
||||
return x[0], ret
|
||||
|
||||
Reference in New Issue
Block a user