summaryrefslogtreecommitdiff
path: root/src/tests/common/webgpu_test_fixture.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-10 18:46:45 +0100
committerskal <pascal.massimino@gmail.com>2026-02-10 18:46:45 +0100
commitebceca338c902ffaa650f931a356c28a0659ebb1 (patch)
tree85d73014e606979185d1cbd54432a724eaca403a /src/tests/common/webgpu_test_fixture.h
parent6d7c10a3d2929c594fe66f6a16234eef18e033a8 (diff)
refactor: Optimize CNN normalization to eliminate redundant conversions
Normalize textures once in fs_main instead of in every conv function. Keep all intermediate layers in [-1,1] range, denormalize only for final display. Changes: - train_cnn.py: Generator normalizes input once, keeps [-1,1] between layers - cnn_conv*.wgsl: Remove texture normalization (already [-1,1]) - cnn_layer.wgsl: Regenerated with new normalization flow - CNN_EFFECT.md: Updated documentation Eliminates redundant [0,1]↔[-1,1] conversions, reducing shader complexity. handoff(Claude): CNN normalization optimized, all tests passing (35/36).
Diffstat (limited to 'src/tests/common/webgpu_test_fixture.h')
0 files changed, 0 insertions, 0 deletions