diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-10 18:46:45 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-10 18:46:45 +0100 |
| commit | ebceca338c902ffaa650f931a356c28a0659ebb1 (patch) | |
| tree | 85d73014e606979185d1cbd54432a724eaca403a /tools/shadertoy/example.txt | |
| parent | 6d7c10a3d2929c594fe66f6a16234eef18e033a8 (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 'tools/shadertoy/example.txt')
0 files changed, 0 insertions, 0 deletions
