Skip to content

Commit 1ccd360

Browse files
committed
add WebNN in log
1 parent 9f62135 commit 1ccd360

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

js/web/docs/webnn-operators.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ operators and the supported opset domain/versions in **WebNN EP** by ONNX Runtim
8080
| Relu | ai.onnx(7-12, 13, 14+) | relu ||| |
8181
| Reshape | ai.onnx(7-12, 13, 14-18, 19-20, 21+) | reshape ||| Input 'shape' should be a constant, 0 dimension value in 'shape' is not supported |
8282
| Resize | ai.onnx(11-12, 13-17, 18, 19+) | resample2d ||| Only supports 4-D input, antialias == 0, coordinate_transformation_mode == 'half_pixel', exclude_outside == 0, keep_aspect_ratio_policy == 'stretch', 'linear' and 'nearest' modes, input 'scales' and 'sizes' if present must be a constant |
83+
| ScatterND | ai.onnx(11-12, 13-15, 16-17, 18+) | scatterND ||| Only supports 'reduction' == 'none' |
8384
| Shape | ai.onnx(7-12, 13-14, 15-18, 19-20, 21+) | slice ||| |
8485
| Sigmoid | ai.onnx(7-12, 13+) | sigmoid ||| |
8586
| Softplus | ai.onnx(7+) | softplus ||| |

onnxruntime/core/providers/webnn/builders/impl/gatherND_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool GatherNDOpBuilder::IsOpSupportedImpl(const InitializedTensorSet& /* initial
4848
const logging::Logger& logger) const {
4949
NodeAttrHelper helper(node);
5050
if (helper.Get("batch_dims", 0) != 0) {
51-
LOGS(logger, VERBOSE) << "GatherND: batch_dims must be equal to 0";
51+
LOGS(logger, VERBOSE) << "GatherND: WebNN only supports batch_dims 0 (default)";
5252
return false;
5353
}
5454

onnxruntime/core/providers/webnn/builders/impl/scatterND_op_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool ScatterNDOpBuilder::IsOpSupportedImpl(const InitializedTensorSet& /* initia
5050
const logging::Logger& logger) const {
5151
NodeAttrHelper helper(node);
5252
if (helper.Get("reduction", "none") != "none") {
53-
LOGS(logger, VERBOSE) << "ScatterND: the type of reduction must be none (default)";
53+
LOGS(logger, VERBOSE) << "ScatterND: WebNN only supports reduction type none (default)";
5454
return false;
5555
}
5656

0 commit comments

Comments
 (0)