The artifact is corrupt. This error should not occur if the artifact was produced by thx.compile(), because the compiler’s validate pass catches dimension mismatches at compile time with E0106. If you see E0004 at run time, the artifact was likely modified after compilation.
E0004: layer dimension mismatch at layer 2Why: layer 2 expects 512 input features but receives 256 from layer 1.Fix: recompile the model — the artifact may be corrupt.Docs: https://docs.thrindex.com/errors/E0004