[WebNN EP] Upgrade max supported opset to 19 (#16036)

This commit is contained in:
Wanming Lin 2023-05-24 09:02:20 +08:00 committed by GitHub
parent efc84a43e8
commit bcd8b73343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -97,7 +97,8 @@ bool BaseOpBuilder::HasSupportedOpSet(const Node& node,
const logging::Logger& logger) const {
auto since_version = node.SinceVersion();
if (since_version < GetMinSupportedOpSet(node) || since_version > GetMaxSupportedOpSet(node)) {
LOGS(logger, VERBOSE) << node.OpType() << "is only supported for opset ["
LOGS(logger, VERBOSE) << "Current opset is " << since_version << ", "
<< node.OpType() << " is only supported for opset ["
<< GetMinSupportedOpSet(node) << ", "
<< GetMaxSupportedOpSet(node) << "]";
return false;

View file

@ -39,7 +39,7 @@ class BaseOpBuilder : public IOpBuilder {
virtual bool HasSupportedInputsImpl(const Node& node, const logging::Logger& logger) const;
virtual int GetMinSupportedOpSet(const Node& /* node */) const { return 1; }
virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 14; }
virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 19; }
private:
bool HasSupportedOpSet(const Node& node, const logging::Logger& logger) const;