diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-11 10:07:58 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-11 10:07:58 +0100 |
| commit | d56de04a4b1f19b9fa73e6f7f9c7a5a0eadd6dd3 (patch) | |
| tree | c5a91b8bb490ae6d9464cb5c7cc0e9306cb2be36 /src/audio/backend/miniaudio_backend.cc | |
| parent | 3e7d0ee97426cfe89938432781d71f6db94fdb07 (diff) | |
fix: Replace clamp with sigmoid in CNN final layer
Final layer used hard clamp causing saturation to white when output > 1.0.
Replaced with sigmoid activation for smooth [0,1] mapping with gradients.
Changes:
- train_cnn.py: torch.sigmoid() in forward pass and WGSL codegen
- WGSL shaders: 1.0/(1.0+exp(-sum)) in cnn_conv3x3/5x5 _7to1 functions
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/audio/backend/miniaudio_backend.cc')
0 files changed, 0 insertions, 0 deletions
