Skip to content

Commit 11c11b6

Browse files
committed
resolve comments
1 parent 034141d commit 11c11b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnxruntime/core/providers/webgpu/webgpu_context.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ Status WebGpuContext::Run(ComputeContext& context, const ProgramBase& program) {
199199

200200
if (program.IndirectDispatchTensor() != nullptr) {
201201
ORT_ENFORCE(!inputs.empty() && inputs.back().tensor == program.IndirectDispatchTensor(),
202-
"Indirect dispatch tensor must be the last input.");
202+
"The indirect dispatch tensor must be the last input. "
203+
"Ensure no call to program.AddInput() occurs after program.SetIndirectDispatchTensor().");
203204
}
204205

205206
ORT_ENFORCE(std::all_of(outputs.begin(), outputs.end(), [](const ProgramOutput& output) {

0 commit comments

Comments
 (0)