Browse Source

Update ONNX text test file (#884)

Lutz Roeder 4 years ago
parent
commit
1df8039f34
2 changed files with 2 additions and 1 deletions
  1. 1 0
      source/onnx.js
  2. 1 1
      test/models.json

+ 1 - 0
source/onnx.js

@@ -2088,6 +2088,7 @@ onnx.TextReader = class {
         }
         tensor.data_type = type.tensor_type.elem_type;
         tensor.dims = type.tensor_type.shape.dim.map((dim) => dim.dim_value);
+        this._match('=');
         this._expect('{');
         if (!this._match('}')) {
             do {

+ 1 - 1
test/models.json

@@ -3578,7 +3578,7 @@
   {
     "type":   "onnx",
     "target": "text_example.txt",
-    "source": "https://github.com/lutzroeder/netron/files/8189628/text_example.txt.zip[text_example.txt]",
+    "source": "https://github.com/lutzroeder/netron/files/8190032/text_example.txt.zip[text_example.txt]",
     "format": "ONNX Text v7",
     "link":   "https://github.com/lutzroeder/netron/issues/884"
   },