Skip to content

Commit

Permalink
Add MLIR test file (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Sep 29, 2024
1 parent 084ae58 commit dadc151
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/mlir.js
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,7 @@ mlir.BytecodeReader = class {
this.producer = reader.string();
this.sections = [];
while (reader.position < reader.length) {
// https://mlir.llvm.org/docs/BytecodeFormat/
const code = reader.byte();
const identifier = code & 0x7F;
const length = reader.varint().toNumber();
Expand Down
8 changes: 8 additions & 0 deletions test/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -3084,6 +3084,14 @@
"format": "MLIR",
"link": "https://github.com/lutzroeder/netron/issues/1044"
},
{
"type": "mlir",
"target": "model.mlirbc",
"source": "https://github.com/user-attachments/files/17179955/model.mlirbc.zip[model.mlirbc]",
"format": "MLIR",
"error": "Invalid section length.",
"link": "https://github.com/lutzroeder/netron/issues/1044"
},
{
"type": "mlir",
"target": "versioned-op-2.0.mlirbc",
Expand Down

0 comments on commit dadc151

Please sign in to comment.