Skip to content

Commit

Permalink
modify log
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyi9801 committed Oct 28, 2024
1 parent cc58605 commit 99d0b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/webnn/builders/helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool IsTensorShapeSupported(const NodeArg& node_arg, const std::string& parent_n
return false;
}
if (dim.dim_value() == 0) {
LOGS(logger, VERBOSE) << "The shape of [" << node_arg_name << "] has 0 dimension which is not supported";
LOGS(logger, VERBOSE) << "The shape of [" << node_arg_name << "] has 0 dimension which is not supported by WebNN";
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool ExpandOpBuilder::IsOpSupportedImpl(const InitializedTensorSet& initializers
return false;
}
if (std::any_of(new_shape.begin(), new_shape.end(), [](int64_t dimension) { return dimension == 0; })) {
LOGS(logger, VERBOSE) << "Expand does not support new shape with 0 dimension.";
LOGS(logger, VERBOSE) << "WebNN expand does not support new shape with 0 dimension.";
return false;
}

Expand Down

0 comments on commit 99d0b7e

Please sign in to comment.