From 112d7f82a4fccbe26ae2b4696d87464494253ce1 Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 23:42:53 +0100 Subject: CNN v2: Remove vizScale, always clip to [0,1] All layers now use scale 1.0, shader clamps values >1. Co-Authored-By: Claude Sonnet 4.5 --- tools/cnn_v2_test/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/cnn_v2_test') diff --git a/tools/cnn_v2_test/index.html b/tools/cnn_v2_test/index.html index 73a9f55..dd1e42b 100644 --- a/tools/cnn_v2_test/index.html +++ b/tools/cnn_v2_test/index.html @@ -1527,8 +1527,7 @@ class CNNTester { continue; } - // Static features: 1.0, Layer 0: 1.0 (clamped [0,1]), Middle layers: 0.5 (ReLU, can be >1) - const vizScale = (layerIdx === 0 || layerIdx === 1) ? 1.0 : 0.5; + const vizScale = 1.0; // Always 1.0, shader clamps to [0,1] const paramsBuffer = this.device.createBuffer({ size: 8, usage: GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST -- cgit v1.2.3