auto gives up ubatch before it gives up a layer¶
Tests › tests/unit/inference/auto_placement_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/auto_placement_test.cpp:292 · its file's page
What it checks (13)
REQUIRE(p.known)observesderive_auto_placementviapCHECK(p.fully_resident)observesderive_auto_placementviapCHECK(p.cpu_moe_layers == 0)observesderive_auto_placementviapCHECK(p.n_ubatch > 0)observesderive_auto_placementviapCHECK(p.n_ubatch < 512)observesderive_auto_placementviapCHECK(p.n_ubatch >= 128)observesderive_auto_placementviapCHECK(p.fully_resident)observesderive_auto_placementviapCHECK(p.n_ubatch == 256)observesderive_auto_placementviapCHECK(p.margin_bytes > 0)observesderive_auto_placementviapCHECK(p.bytes + p.margin_bytes + compute == roomier)observescompute_allowance_bytesviacomputeREQUIRE(p.known)observesderive_auto_placementviapCHECK(p.fully_resident)observesderive_auto_placementviapCHECK(p.n_ubatch == 0)observesderive_auto_placementviap
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
auto gives up ubatch before it gives up a layer→a4b_iq2→bench_inputs→WHEN→derive_auto_placement→REQUIRE→compute_allowance_bytesWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-019 inferred