Skip to content

Commit

Permalink
Add PyTorch test file (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 13, 2023
1 parent 22d161a commit f75a828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -5030,7 +5030,7 @@ python.Execution = class {
return execution.invoke('torch.fx.graph_module.GraphModule', []);
});
this.registerFunction('torch.fx.graph_module._forward_from_src', function(/* src, globals, co_fields */) {
throw new python.Error("'torch.fx.graph_module._forward_from_src' not implemented.");
return {};
});
this.registerFunction('torch.fx.graph_module.reduce_graph_module', function(body, import_block) {
// https://github.com/pytorch/pytorch/blob/master/torch/fx/graph_module.py
Expand Down
7 changes: 7 additions & 0 deletions test/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -5338,6 +5338,13 @@
"error": "Unknown type name '__torch__.torch.classes.rnn.CellParamsBase'.",
"link": "https://github.com/lutzroeder/netron/issues/969"
},
{
"type": "pytorch",
"target": "torch_fx_sample.pt",
"source": "https://github.com/lutzroeder/netron/files/12889841/torch_fx_sample.pt.zip[torch_fx_sample.pt]",
"format": "PyTorch v1.6",
"link": "https://github.com/lutzroeder/netron/issues/720"
},
{
"type": "pytorch",
"target": "traced_fft.pt",
Expand Down

0 comments on commit f75a828

Please sign in to comment.