Skip to content

Commit f4e9998

Browse files
committed
remove unnecessary check of query_type != none
1 parent 3a6d448 commit f4e9998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/webgpu/webgpu_context.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ Status WebGpuContext::Run(ComputeContext& context, const ProgramBase& program) {
218218

219219
auto key = CalculateProgramCacheKey(program, is_1d_dispatch);
220220

221-
if (is_profiling_ && query_type_ != TimestampQueryType::None) {
221+
if (is_profiling_) {
222222
PendingKernelInfo pending_kernel_info(context.KernelContext().GetNodeName(),
223223
program.Name(),
224224
key,
@@ -589,7 +589,7 @@ void WebGpuContext::Flush() {
589589

590590
EndComputePass();
591591

592-
if (is_profiling_ && query_type_ != TimestampQueryType::None && num_pending_dispatches_ > 0) {
592+
if (is_profiling_ && num_pending_dispatches_ > 0) {
593593
uint32_t query_count = num_pending_dispatches_ * 2;
594594
current_command_encoder_.ResolveQuerySet(
595595
query_set_,

0 commit comments

Comments
 (0)