From 69d82c1e2585df42c89f3faf8041d9caee4e951c Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Sun, 2 Jun 2024 09:55:43 -0700 Subject: [PATCH] Add MLIR test file (#1044) --- source/mlir.js | 2 +- test/models.json | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/source/mlir.js b/source/mlir.js index caab0c681a..b4ba8d2cb0 100644 --- a/source/mlir.js +++ b/source/mlir.js @@ -1007,7 +1007,7 @@ mlir.Parser = class { } break; default: - throw new mlir.Error(`Unexpected operation name '${JSON.stringify(this._current)}' ${this._tokenizer.location()}`); + throw new mlir.Error(`Unexpected operation '${this._current.value}' ${this._tokenizer.location()}`); } return value; } diff --git a/test/models.json b/test/models.json index 2db09d37df..28123a759d 100644 --- a/test/models.json +++ b/test/models.json @@ -3048,6 +3048,13 @@ "source": "https://raw.githubusercontent.com/dotnet/machinelearning-samples/61b428c746f39069a9d1d92f9e0f819e6beb30f3/samples/csharp/end-to-end-apps/DeepLearning_ObjectDetection_Onnx/OnnxObjectDetectionE2EAPP/ML/MLNETModel/TinyYoloModel.zip", "format": "ML.NET v1.0.27701.1" }, + { + "type": "mlir", + "target": "1043.mlir", + "source": "https://github.com/lutzroeder/netron/files/14074683/1043.mlir.zip[1043.mlir]", + "format": "MLIR", + "link": "https://github.com/lutzroeder/netron/issues/1044" + }, { "type": "mlir", "target": "examples.mnist_xla.mlir", @@ -3057,8 +3064,9 @@ }, { "type": "mlir", - "target": "1043.mlir", - "source": "https://github.com/lutzroeder/netron/files/14074683/1043.mlir.zip[1043.mlir]", + "target": "embedding_bm1684x_f16_tpu.mlir", + "source": "https://github.com/user-attachments/files/15525787/embedding_bm1684x_f16_tpu.mlir.txt", + "error": "Unexpected operation '#' at 1:1.", "format": "MLIR", "link": "https://github.com/lutzroeder/netron/issues/1044" },