We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d6e2d9 commit a532c8aCopy full SHA for a532c8a
js/web/lib/wasm/jsep/webgpu/ops/slice.ts
@@ -98,7 +98,7 @@ const calculateInputIndicesImpl = (
98
`fn calculateInputIndices(output_indices: ${output.type.indices}) -> ${input.type.indices} {
99
var input_indices: ${input.type.indices};
100
var carry = 0u;
101
- for (var i = ${inputShape.length}; i >= 0; i--) {
+ for (var i = ${inputShape.length - 1}; i >= 0; i--) {
102
let input_shape_i = ${getElementAt('uniforms.input_shape', 'i', inputShape.length)};
103
let steps_i = ${getElementAt('uniforms.steps', 'i', inputShape.length)};
104
let signs_i = ${getElementAt('uniforms.signs', 'i', inputShape.length)};
0 commit comments