Skip to content

Commit

Permalink
fix linux build break
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Sep 20, 2024
1 parent dfab322 commit cb9f3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Status BinaryElementwise::ComputeInternal(ComputeContext& context) const {
}
}

SafeInt<uint32_t> vec_size = (size + 3) / 4;
uint32_t vec_size = SafeInt<uint32_t>((size + 3) / 4);
BinaryElementwiseProgram program{kernel_name_,
expression_,
is_broadcast,
Expand Down
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/webgpu/tensor/transpose.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const std::string AppendPermFunction(gsl::span<const size_t> perm) {
ss.imbue(std::locale::classic());
ss << "fn perm(i: y_indices_t)->x_indices_t {\n"
" var a: x_indices_t;\n";
for (auto i = 0; i < perm.size(); ++i) {
for (size_t i = 0; i < perm.size(); ++i) {
ss << " a[" << perm[i] << "] = i[" << i << "];\n";
}
ss << " return a;\n"
Expand Down

0 comments on commit cb9f3a4

Please sign in to comment.