You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gate float and hosted-stdlib code paths for embedded builds
Introduce TINYMIND_ENABLE_FLOAT and TINYMIND_ENABLE_HOSTED_IO opt-in
macros (defaulting off, matching the existing TINYMIND_ENABLE_OSTREAMS
precedent) so that targets without an FPU or full C++ stdlib can
include the standalone composable layers without dragging in <cmath>,
<fstream>, or <vector>. Refactor SquareRootApproximation<QValue> to
integer Newton's method on the raw representation (Q-format identity
sqrt(r/2^N)*2^N == isqrt(r << N)), and replace ValueConverter<double,
QValue> usage in batchnorm/binary/ternary with a SFINAE-dispatched
fromInteger helper so percent-based hyperparams compile to pure
integer arithmetic on QValue. Add a unit_test/embedded smoke test
that builds a QValue-only pipeline with none of the new macros set,
acting as a regression guard against future hosted-only includes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments