compile3: make selftests opt-in (#12851)

This commit is contained in:
Harald Schäfer
2025-10-21 11:32:27 -07:00
committed by GitHub
parent c3149c618a
commit 587ccc0e5c
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ if __name__ == "__main__":
with open(OUTPUT, "rb") as f: pickle_loaded = pickle.load(f)
test_vs_compile(pickle_loaded, inputs, outputs)
if not getenv("FLOAT16"):
if getenv("SELFTEST"):
test_vs_onnx(inputs, outputs, onnx_file, 1e-4)
if getenv("BENCHMARK_LOG", ""):