From 8f14bdd66cb002b2f89265b2a578ad93249089c9 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 26 Mar 2026 07:03:01 +0100 Subject: feat(cnn_v3): upgrade architecture to enc_channels=[8,16] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Double encoder capacity: enc0 4→8ch, enc1 8→16ch, bottleneck 16→16ch, dec1 32→8ch, dec0 16→4ch. Total weights 2476→7828 f16 (~15.3 KB). FiLM MLP output 40→72 params (L1: 16×40→16×72). 16-ch textures split into _lo/_hi rgba32uint pairs (enc1, bottleneck). enc0 and dec1 textures changed from rgba16float to rgba32uint (8ch). GBUF_RGBA32UINT node gains CopySrc for parity test readback. - WGSL shaders: all 5 passes rewritten for new channel counts - C++ CNNv3Effect: new weight offsets/sizes, 8ch uniform structs - Web tool (shaders.js + tester.js): matching texture formats and bindings - Parity test: readback_rgba32uint_8ch helper, updated vector counts - Training scripts: default enc_channels=[8,16], updated docstrings - Docs + architecture PNG regenerated handoff(Gemini): CNN v3 [8,16] upgrade complete. All code, tests, web tool, training scripts, and docs updated. Next: run training pass. --- src/gpu/sequence.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gpu') diff --git a/src/gpu/sequence.cc b/src/gpu/sequence.cc index 6bff34e..c81a912 100644 --- a/src/gpu/sequence.cc +++ b/src/gpu/sequence.cc @@ -203,7 +203,8 @@ void NodeRegistry::create_texture(Node& node) { case NodeType::GBUF_RGBA32UINT: format = WGPUTextureFormat_RGBA32Uint; usage = (WGPUTextureUsage)(WGPUTextureUsage_StorageBinding | - WGPUTextureUsage_TextureBinding); + WGPUTextureUsage_TextureBinding | + WGPUTextureUsage_CopySrc); break; } -- cgit v1.2.3