Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Honry committed Sep 13, 2024
1 parent 301bbd7 commit 402b032
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ bool BaseOpBuilder::HasSupportedInputsImpl(const Node& node,
}

bool BaseOpBuilder::HasSupportedOutputsImpl(const Node& node,
const emscripten::val& wnn_limits,
const logging::Logger& logger) const {
const emscripten::val& wnn_limits,
const logging::Logger& logger) const {
// We only check the type of output 0 by default, specific op builder can override this.
const auto& output = *node.OutputDefs()[0];
const auto& op_type = node.OpType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BaseOpBuilder : public IOpBuilder {
virtual bool HasSupportedInputsImpl(const Node& node, const emscripten::val& wnn_limits,
const logging::Logger& logger) const;
virtual bool HasSupportedOutputsImpl(const Node& node, const emscripten::val& wnn_limits,
const logging::Logger& logger) const;
const logging::Logger& logger) const;

// ONNX Runtime only *guarantees* support for models stamped
// with opset version 7 or above for opset domain 'ai.onnx'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ bool ConcatOpBuilder::HasSupportedInputsImpl(const Node& node, const emscripten:
return false;
}

if (!AreInputDataTypesSame(op_type, {input0_type, input_type}, logger)) {
return false;
}
if (!AreInputDataTypesSame(op_type, {input0_type, input_type}, logger)) {
return false;
}
}

return IsDataTypeSupportedByOp(op_type, input0_type, wnn_limits, "inputs", "inputs", logger);
Expand Down

0 comments on commit 402b032

Please sign in to comment.