jax.debug_infs#

jax.debug_infs = <jax._src.config.State object>#

jax_debug_infs 配置选项的上下文管理器。

向每个操作添加 inf 检查。当在 jit 编译的计算输出上检测到 inf 时,调用未编译版本,以尝试更精确地识别产生 inf 的操作。

参数:

new_val (Any)