Skip to content

Commit

Permalink
fix: type error in LRN WGSL
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelspark committed Mar 25, 2023
1 parent ccca5f7 commit 3ca9197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wonnx/templates/matrix/lrn.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
square_sum += I * I;
}

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

0 comments on commit 3ca9197

Please sign in to comment.