Plan
The core carries values of no entries through every pass, and skoro-normal builds the improper Gaussian factor over a stacked tangent, as a retirement's replacement or a likelihood factor with its roles bound.
The build has two parts, in this order. First the core carries values of no entries, by a broadcast and a reshape in the tensor layer that every call of burn’s expand, and every
reshape of a tensor that may have no entries, goes through
(A factor of no rows). Then skoro-normal gains Improper, built by Stacked::improper, and the roles’ descriptions say what the math decided
(The factor, The roles’ descriptions).
The umbrella’s tests then check the factor in retirements and on the sphere.
The tensor layer (skoro-tensor)#
-
broadcastandreshapeinvalue.rs, both making a tensor of no entries withTensor::empty, exported from the crate’s root, and the two calls ofexpandinhost.rsreplaced bybroadcast. Tests:broadcast_to_no_entries,reshape_to_no_entries,values_of_no_entries_load.
The core (skoro-core)#
- The fourteen calls of
expandinprogram.rsand in the primitives’rule.rs,euclidean.rsandpositive.rsreplaced bybroadcast, and the seven reshapes ofeuclidean.rs,rule.rsandpositive.rsreplaced byreshape, as the implementation’s two tables list them, and any further kernel that fails on values of no entries fixed where it fails, or the build stopped and the failure reported if a fix needs more than a guard around one burn call. Tests:values_of_no_entries_through_every_pass.
The normal (skoro-normal)#
-
Bindsmadepub(crate)instacked.rs;improper.rswithImproper,Stacked::improper,Improper::linear, its accessors,log_density,replacementandfactor, and the shared binding of the residual and the linear part;Improperexported from the crate’s root, and the crate’s documentation naming it. Tests:value_is_the_definition,roles_are_bound,rows_differ_across_a_batch,no_blocks_is_refused. - The tests of the mathematics’ statements and examples on the flat-in-disguise types. Tests:
full_rank_is_the_stacked_normal,forms_give_one_function,positive_example_is_exact,gauss_newton_is_the_hessian_on_flat_types. - The factor of no rows, with and without a linear part, through every pass. Tests:
no_rows_is_its_linear_part. - The descriptions of the module,
RESIDUALandLOG_VOLUMEinroles.rs, as the implementation gives them. Tests: none;cargo docresolves the link toImproper.
The umbrella’s tests (skoro)#
- The improper factor in retirements: the planar bearings, the bindings on the factor a
retirement adds, and a blanket quantity left undetermined. Tests:
retirement.rs::bearings_accumulate,retirement.rs::improper_replacement_binds_its_roles,retirement.rs::undetermined_blanket_needs_a_proposal. - The improper factor on the acceptance-test sphere. Tests:
sphere.rs::improper_factor_on_the_sphere.
Done when#
Every box is ticked, and these pass from the root:
bin/wf check
cargo fmt --all --check && cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cd site && pnpm check && pnpm lint && pnpm test && pnpm buildThe first two tasks change skoro-tensor and the primitives’ kernels, so the branch is pushed only
after
cargo test --workspace --features wgpupasses on a machine with an adapter, and the commit that records it says so. A failure there on values of no entries is reported, as one on the host is, rather than worked around.
Revisions#
2026-11-09. The implementation was reopened when the build found that burn’s reshape reads a
dimension of zero as the source’s size. The first task, built and ticked with the first body of broadcast, is unticked and now adds reshape too, with broadcast’s corrected body and the test reshape_to_no_entries; the second replaces the seven reshapes of the core as well as its calls of expand.