Skip to content

Commit

Permalink
Update PyTorch test files
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Feb 11, 2025
1 parent 97e27c7 commit c272f69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5811,7 +5811,7 @@ view.ModelFactoryService = class {
this._factories = [];
/* eslint-disable no-control-regex */
this.register('./message', ['.message', '.netron', '.maxviz']);
this.register('./pytorch', ['.pt', '.pth', '.ptl', '.pt1', '.pt2', '.pyt', '.pyth', '.pkl', '.pickle', '.h5', '.t7', '.model', '.dms', '.tar', '.ckpt', '.chkpt', '.tckpt', '.bin', '.pb', '.zip', '.nn', '.torchmodel', '.torchscript', '.pytorch', '.ot', '.params', '.trt', '.ff', '.ptmf', '.jit', '.bin.index.json', 'model.json', '.ir', 'serialized_exported_program.json', 'serialized_state_dict.json'], ['.model', '.pt2']);
this.register('./pytorch', ['.pt', '.pth', '.ptl', '.pt1', '.pt2', '.pyt', '.pyth', '.pkl', '.pickle', '.h5', '.t7', '.model', '.dms', '.tar', '.ckpt', '.chkpt', '.tckpt', '.bin', '.pb', '.zip', '.nn', '.torchmodel', '.torchscript', '.pytorch', '.ot', '.params', '.trt', '.ff', '.ptmf', '.jit', '.bin.index.json', 'model.json', '.ir', 'serialized_exported_program.json', 'serialized_state_dict.json'], ['.model', '.pt2'], [/^\x80.\x8a\x0a\x6c\xfc\x9c\x46\xf9\x20\x6a\xa8\x50\x19/]);
this.register('./onnx', ['.onnx', '.onnx.data', '.onn', '.pb', '.onnxtxt', '.pbtxt', '.prototxt', '.txt', '.model', '.pt', '.pth', '.pkl', '.ort', '.ort.onnx', '.ngf', '.json', '.bin', 'onnxmodel'], [], [/^....ORTM/]);
this.register('./tflite', ['.tflite', '.lite', '.tfl', '.bin', '.pb', '.tmfile', '.h5', '.model', '.json', '.txt', '.dat', '.nb', '.ckpt', '.onnx'], [], [/^....TFL3/]);
this.register('./mxnet', ['.json', '.params'], ['.mar']);
Expand Down Expand Up @@ -5867,8 +5867,8 @@ view.ModelFactoryService = class {
this.register('./hailo', ['.hn', '.har', '.metadata.json']);
this.register('./nnc', ['.nnc','.tflite']);
this.register('./safetensors', ['.safetensors', '.safetensors.index.json']);
this.register('./tvm', ['.json', '.dot', '.params']);
this.register('./dot', ['.do'], [], [/^\s*(\/\*[\s\S]*?\*\/|\/\/.*|#.*)?\s*digraph\s*([A-Za-z][A-Za-z0-9-_]*|".*?")?\s*{/m]);
this.register('./tvm', ['.json', '.params']);
this.register('./dot', ['.dot'], [], [/^\s*(\/\*[\s\S]*?\*\/|\/\/.*|#.*)?\s*digraph\s*([A-Za-z][A-Za-z0-9-_]*|".*?")?\s*{/m]);
this.register('./catboost', ['.cbm']);
this.register('./weka', ['.model']);
this.register('./qnn', ['.json', '.bin', '.serialized']);
Expand Down
16 changes: 8 additions & 8 deletions test/models.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[
{
"type": "_",
"target": "boolean.onnx",
"source": "https://github.com/lutzroeder/netron/files/8985631/boolean.onnx.zip[boolean.onnx]",
"error": "Unsupported Pickle content.",
"link": "https://github.com/lutzroeder/netron/issues/458"
},
{
"type": "_",
"target": "cnn_classifier.h5",
Expand Down Expand Up @@ -5421,6 +5414,13 @@
"format": "PyTorch v1.6",
"link": "https://github.com/lutzroeder/netron/issues/543"
},
{
"type": "pytorch",
"target": "boolean.onnx",
"source": "https://github.com/lutzroeder/netron/files/8985631/boolean.onnx.zip[boolean.onnx]",
"format": "PyTorch v0.1.10",
"link": "https://github.com/lutzroeder/netron/issues/458"
},
{
"type": "pytorch",
"target": "blitz_cifar10_tutorial.pt",
Expand Down Expand Up @@ -5624,7 +5624,7 @@
},
{
"type": "pytorch",
"target": "DRNL4x_dual_model.pth",
"target": "DRNL4x_dual_model",
"source": "https://github.com/lutzroeder/netron/files/5505677/DRNL4x_dual_model.pth.zip[DRNL4x_dual_model.pth]",
"format": "PyTorch v0.1.10",
"assert": "model.graphs[0].nodes.length == 2",
Expand Down

0 comments on commit c272f69

Please sign in to comment.