Skip to content

Commit c7057f0

Browse files
committed
Refactor comments for clarity and update function name to follow naming conventions
1 parent e5e8dee commit c7057f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnxruntime/core/providers/webnn/builders/helper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool IsInputRankSupportedByOp(const Node& node, const emscripten::val& wnn_limit
172172
const auto& input_defs = node.InputDefs();
173173

174174
for (const auto& input : inputs) {
175-
// If it is an optional input and is not presented, skip.
175+
// If it is an optional input and is absent, skip.
176176
if (!TensorExists(input_defs, input.index)) {
177177
continue;
178178
}

onnxruntime/core/providers/webnn/builders/helper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ inline std::string_view GetWebNNOpType(const std::string_view onnx_op_type) {
252252
}
253253

254254
// Get corresponding input name of WebNN op type by ONNX op type from op_input_map
255-
inline std::string_view getWebNNInputName(const std::string_view onnx_op_type, const int input_index) {
255+
inline std::string_view GetWebNNInputName(const std::string_view onnx_op_type, const int input_index) {
256256
const auto it = op_inputs_map.find(onnx_op_type);
257257

258258
if (it != op_inputs_map.end()) {

0 commit comments

Comments
 (0)