Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Oct 11, 2024
1 parent f4e9998 commit 9f09601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/core/providers/webgpu/webgpu_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,17 +518,17 @@ void WebGpuContext::CollectProfilingData(profiling::Events& events) {
})) == Status::OK());
auto mapped_data = static_cast<const uint64_t*>(query_read_buffer.GetConstMappedRange());

for (int i = 0; i < pending_kernels.size(); i++) {
for (size_t i = 0; i < pending_kernels.size(); i++) {
const PendingKernelInfo& pending_kernel_info = pending_kernels[i];
const auto& inputs = pending_kernel_info.inputs;
const auto& outputs = pending_kernel_info.outputs;

SS(shapes, 128);
for (int s = 0; s < inputs.size(); s++) {
for (size_t s = 0; s < inputs.size(); s++) {
const auto& input = inputs[s];
shapes << "inputs[" << s << "] = " << input.override_shape.ToString() << " ";
}
for (int s = 0; s < outputs.size(); s++) {
for (size_t s = 0; s < outputs.size(); s++) {
const auto& output = outputs[s];
shapes << "outputs[" << s << "] = " << output.override_shape.ToString() << " ";
}
Expand Down

0 comments on commit 9f09601

Please sign in to comment.