auto gives up ubatch before it gives up a layer

Tests › tests/unit/inference/auto_placement_test.cpp

absent Not in the packaged run: no test report names it.

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)

  1. REQUIRE(p.known) observes derive_auto_placement via p
  2. CHECK(p.fully_resident) observes derive_auto_placement via p
  3. CHECK(p.cpu_moe_layers == 0) observes derive_auto_placement via p
  4. CHECK(p.n_ubatch > 0) observes derive_auto_placement via p
  5. CHECK(p.n_ubatch < 512) observes derive_auto_placement via p
  6. CHECK(p.n_ubatch >= 128) observes derive_auto_placement via p
  7. CHECK(p.fully_resident) observes derive_auto_placement via p
  8. CHECK(p.n_ubatch == 256) observes derive_auto_placement via p
  9. CHECK(p.margin_bytes > 0) observes derive_auto_placement via p
  10. CHECK(p.bytes + p.margin_bytes + compute == roomier) observes compute_allowance_bytes via compute
  11. REQUIRE(p.known) observes derive_auto_placement via p
  12. CHECK(p.fully_resident) observes derive_auto_placement via p
  13. CHECK(p.n_ubatch == 0) observes derive_auto_placement via p

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_bytes

What 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.

auto gives up ubatch before it gives up a layer · 13 checksWHENfailure_detailREQ-API-012 · inferredderive_auto_placementREQ-INFER-019 · inferred
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.