summaryrefslogtreecommitdiff
path: root/cnn_v3/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'cnn_v3/shaders')
-rw-r--r--cnn_v3/shaders/cnn_v3_dec0.wgsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/cnn_v3/shaders/cnn_v3_dec0.wgsl b/cnn_v3/shaders/cnn_v3_dec0.wgsl
index 617b5a2..79fd837 100644
--- a/cnn_v3/shaders/cnn_v3_dec0.wgsl
+++ b/cnn_v3/shaders/cnn_v3_dec0.wgsl
@@ -64,7 +64,7 @@ fn dec0_main(@builtin(global_invocation_id) id: vec3u) {
}
}
}
- let v = max(0.0, params.gamma[o] * sum + params.beta[o]);
+ let v = params.gamma[o] * sum + params.beta[o];
out[o] = 1.0 / (1.0 + exp(-v));
}