Skip to content

Commit dadc151

Browse files
committed
Add MLIR test file (#1044)
1 parent 084ae58 commit dadc151

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

source/mlir.js

+1
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,7 @@ mlir.BytecodeReader = class {
12031203
this.producer = reader.string();
12041204
this.sections = [];
12051205
while (reader.position < reader.length) {
1206+
// https://mlir.llvm.org/docs/BytecodeFormat/
12061207
const code = reader.byte();
12071208
const identifier = code & 0x7F;
12081209
const length = reader.varint().toNumber();

test/models.json

+8
Original file line numberDiff line numberDiff line change
@@ -3084,6 +3084,14 @@
30843084
"format": "MLIR",
30853085
"link": "https://github.com/lutzroeder/netron/issues/1044"
30863086
},
3087+
{
3088+
"type": "mlir",
3089+
"target": "model.mlirbc",
3090+
"source": "https://github.com/user-attachments/files/17179955/model.mlirbc.zip[model.mlirbc]",
3091+
"format": "MLIR",
3092+
"error": "Invalid section length.",
3093+
"link": "https://github.com/lutzroeder/netron/issues/1044"
3094+
},
30873095
{
30883096
"type": "mlir",
30893097
"target": "versioned-op-2.0.mlirbc",

0 commit comments

Comments
 (0)