Skip to content

Commit 0d77a24

Browse files
committed
fix: div op.
1 parent 8a4bb3b commit 0d77a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nn/vulkan/cast-forward-f32-q80.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void main() {
6666
amax = max(amax, v);
6767
}
6868

69-
const float d = amax / ((1 << 7) - 1);
69+
const float d = amax / 127.0;
7070
const float id = d != 0.0 ? 1.0 / d : 0.0;
7171

7272
y[yiOffset].d = float16_t(d);

0 commit comments

Comments
 (0)