Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 3ca9197

Browse files
committed
fix: type error in LRN WGSL
1 parent ccca5f7 commit 3ca9197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wonnx/templates/matrix/lrn.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
1919
square_sum += I * I;
2020
}
2121

22-
output_0.data[c] = input_0.data[ c ] / pow({{bias}} + ({{alpha}} / {{size}}.0) * square_sum,{{beta}});
22+
output_0.data[c] = input_0.data[ c ] / pow({{ scalar_type }}({{ bias }}) + ({{ scalar_type }}({{ alpha }}) / {{ scalar_type }}({{ size }})) * square_sum, {{ scalar_type }}({{ beta }}));
2323
}

0 commit comments

Comments
 (0)