Skip to content

Commit 69d82c1

Browse files
committed
Add MLIR test file (#1044)
1 parent fe2ec50 commit 69d82c1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Diff for: source/mlir.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ mlir.Parser = class {
10071007
}
10081008
break;
10091009
default:
1010-
throw new mlir.Error(`Unexpected operation name '${JSON.stringify(this._current)}' ${this._tokenizer.location()}`);
1010+
throw new mlir.Error(`Unexpected operation '${this._current.value}' ${this._tokenizer.location()}`);
10111011
}
10121012
return value;
10131013
}

Diff for: test/models.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -3048,6 +3048,13 @@
30483048
"source": "https://raw.githubusercontent.com/dotnet/machinelearning-samples/61b428c746f39069a9d1d92f9e0f819e6beb30f3/samples/csharp/end-to-end-apps/DeepLearning_ObjectDetection_Onnx/OnnxObjectDetectionE2EAPP/ML/MLNETModel/TinyYoloModel.zip",
30493049
"format": "ML.NET v1.0.27701.1"
30503050
},
3051+
{
3052+
"type": "mlir",
3053+
"target": "1043.mlir",
3054+
"source": "https://github.com/lutzroeder/netron/files/14074683/1043.mlir.zip[1043.mlir]",
3055+
"format": "MLIR",
3056+
"link": "https://github.com/lutzroeder/netron/issues/1044"
3057+
},
30513058
{
30523059
"type": "mlir",
30533060
"target": "examples.mnist_xla.mlir",
@@ -3057,8 +3064,9 @@
30573064
},
30583065
{
30593066
"type": "mlir",
3060-
"target": "1043.mlir",
3061-
"source": "https://github.com/lutzroeder/netron/files/14074683/1043.mlir.zip[1043.mlir]",
3067+
"target": "embedding_bm1684x_f16_tpu.mlir",
3068+
"source": "https://github.com/user-attachments/files/15525787/embedding_bm1684x_f16_tpu.mlir.txt",
3069+
"error": "Unexpected operation '#' at 1:1.",
30623070
"format": "MLIR",
30633071
"link": "https://github.com/lutzroeder/netron/issues/1044"
30643072
},

0 commit comments

Comments
 (0)