even better more structured throughput scheduling
Validate Operations / validate-operations (push) Has been cancelled

plot adjustments
validation adjustments
This commit is contained in:
NiccoloN
2026-10-27 17:46:46 +01:00
parent 49d6fb42cf
commit a77edafcbf
46 changed files with 3265 additions and 1043 deletions
+10 -3
View File
@@ -81,7 +81,7 @@ def main():
assert selected["single_candidate_analysis_skipped"] and selected["lowered_candidates"] == 1
assert "spatial_cost" not in selected["candidates"][0]
# An unknown estimate cannot silently exclude any alternative.
# Softmax remains in the functional program but has no oracle timing work.
model = onnx.load(vgg)
output = model.graph.output[0].name
internal = output + "_before_softmax"
@@ -95,10 +95,17 @@ def main():
model.graph.node.append(helper.make_node("Softmax", [internal], [output], axis=-1))
source = root / "vgg-softmax.onnx"
onnx.save(model, source)
report, program, _ = compile(source)
assert report["generated_candidates"] > 1 and report["status"] == "selected"
assert report["lowered_candidates"] == 1 and program
assert all(candidate["eligible"] for candidate in report["candidates"])
# An unknown estimate cannot silently exclude any alternative.
source = REPO / "validation/operations/matmul/yolo_attention/matmul_yolo_attention.onnx"
report, program, diagnostics = compile(source, succeeds=False)
assert report["generated_candidates"] > 1 and report["status"] == "incomplete-costs"
assert report["generated_candidates"] >= 1 and report["status"] == "incomplete-costs"
assert "cannot compare the complete candidate set" in diagnostics
assert "unsupported abstract operation" in diagnostics
assert "unavailable indirect" in diagnostics
assert not program and "backend_attempts" not in report
# Latency PEFT and earlier emission do not invoke candidate costing.
report, program, _ = compile(vgg, pipeline=1)