Checks / structure
Non-spatial tensor into Conv
Check R23. Runs in the editor as you build, in CI through the
GitHub Action, and over the wire at
POST /api/v1/check. Milliseconds, before any GPU is billed.
warn
structure
R23
| Trigger | A flatten or linear layer connects directly into a (non-transpose) convolution. |
|---|---|
| Why | Mirror of R18: a Conv needs a [channels, …spatial] feature map, but Flatten / Linear emit a flat [batch, features] vector. The forward pass raises a shape error unless the spatial dims are rebuilt with a Reshape / Unflatten first. |
| Source | PyTorch nn.Conv*d input-shape contract. |
Why it is not a lint you can ignore
A structural mistake does not fail at review time and it does not fail at import
time. It fails when the module is constructed on the training node, after the job was queued and
the dataset was downloaded. That is why this runs before the spend and not after it.
Run this check on your own model
Free, no account needed
Every check
41 structural checks: 6 guardrail gates and 35 architecture advisor rules. See the full catalogue.
← R22 Conv stride larger than kernel · R24 Back-to-back normalization →