MobileNetV2 — the inference (frozen-statistics) stage vocabulary #
The eval twins of MobileNetV2RenderPC.lean's per-channel stage abbreviations: ivExpandPCEval /
ivDepthwisePCEval / ivDepthwiseStridedPCEval / ivProjectPCEval and the two bodies
(invresBodyPCEval, invresBodyStridedPCEval), every BN site at bnPerChannelEvalTensor3
(frozen running mean and variance). MobileNetV2FullPaperEval builds the shipped seventeen-block
eval forward and its graph from them. 3-axiom clean.
Expand stage at inference: relu6 ∘ bnEval ∘ conv(1×1).
Equations
- Proofs.ivExpandPCEval We be εe γe βe μe ve = Proofs.relu6 (mid * h * w) ∘ Proofs.bnPerChannelEvalTensor3 mid h w εe γe βe μe ve ∘ Proofs.flatConv We be
Instances For
Depthwise stage (stride-1) at inference.
Equations
- Proofs.ivDepthwisePCEval Wd bd εd γd βd μd vd = Proofs.relu6 (mid * h * w) ∘ Proofs.bnPerChannelEvalTensor3 mid h w εd γd βd μd vd ∘ Proofs.depthwiseFlat Wd bd
Instances For
Depthwise stage (stride-2 downsample) at inference.
Equations
- Proofs.ivDepthwiseStridedPCEval Wd bd εd γd βd μd vd = Proofs.relu6 (mid * h * w) ∘ Proofs.bnPerChannelEvalTensor3 mid h w εd γd βd μd vd ∘ Proofs.depthwiseStride2FlatXla Wd bd
Instances For
Project (linear bottleneck) stage at inference — no relu6.
Equations
- Proofs.ivProjectPCEval Wp bp εp γp βp μp vp = Proofs.bnPerChannelEvalTensor3 oc h w εp γp βp μp vp ∘ Proofs.flatConv Wp bp
Instances For
Inverted-residual body (stride-1) at inference, at one shared ε.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Inverted-residual body (stride-2 downsample) at inference: expand at 2h×2w, then the
strided depthwise, then project.
Equations
- One or more equations did not get rendered due to their size.