Skip to content

Commit

Permalink
Partially add validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfogal committed Feb 4, 2025
1 parent e83c003 commit dfe3392
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion benchmarks/python/test_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,12 @@ def benchmark_fn(inputs):
return fd.execute(inputs)

if not disable_validation:
pass # no equivalent version, yet.
# torch.compile required; works around an issue in eager mode.
tc = torch.compile(cat_qwen2_fwd_11)
reference = tc(*inputs)
# Temporarily disabled: leads to an illegal memory access.
if False:
fd.validate(inputs, reference)
if not disable_benchmarking:
run_benchmark(benchmark, benchmark_fn, inputs)

Expand Down

0 comments on commit dfe3392

Please sign in to comment.