Skip to content

Commit

Permalink
Update onnx.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 26, 2022
1 parent bddcfb6 commit 5ac776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/onnx.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ onnx.ModelFactory = class {
}
// ModelProto
if (tags.get(7) === 2) {
const schema = [[1,0],[2,2],[3,2],[4,2][5,0],[6,2],[7,2],[8,2],[14,2],[20,2]];
const schema = [[1,0],[2,2],[3,2],[4,2],[5,0],[6,2],[7,2],[8,2],[14,2],[20,2]];
if (schema.every((pair) => !tags.has(pair[0]) || tags.get(pair[0]) === pair[1])) {
return 'onnx.pb.ModelProto';
}
Expand Down

0 comments on commit 5ac776c

Please sign in to comment.