Skip to content

Commit

Permalink
Revert "Replaced isBroadcast flag with !vectorize to determine to set…
Browse files Browse the repository at this point in the history
… useShapeUniforms."

This reverts commit 6717dd0.
  • Loading branch information
satyajandhyala committed Nov 4, 2023
1 parent a44e6ac commit f06c768
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/web/lib/wasm/jsep/webgpu/ops/binary-op.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ const createBinaryOpProgramInfo =
vectorize = true;
}
cacheKeyAux.push(vectorize);
// Don't need to use shape/stride uniforms if input/output tensors are vectorized.
const useShapesUniforms = !vectorize && enableShapesUniforms(a.dims.length) &&
const useShapesUniforms = enableShapesUniforms(a.dims.length) &&
enableShapesUniforms(b.dims.length) && enableShapesUniforms(outputShape.length);
return {
name,
Expand Down

0 comments on commit f06c768

Please sign in to comment.