Skip to content

Commit

Permalink
Add PyTorch PReLU (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 26, 2018
1 parent 8cb1a10 commit d5e326a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pytorch-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@
"package": "torch.nn.modules.activation"
}
},
{
"name": "PReLU",
"schema": {
"attributes": [
{
"name": "training",
"visible": false
}
],
"category": "Activation",
"package": "torch.nn.modules.activation"
}
},
{
"name": "MaxPool2d",
"schema": {
Expand Down
1 change: 1 addition & 0 deletions src/pytorch-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class PyTorchModelFactory {

constructorTable['argparse.Namespace'] = function (args) { this.args = args; };
constructorTable['torch.nn.modules.activation.ReLU'] = function () {};
constructorTable['torch.nn.modules.activation.PReLU'] = function () {};
constructorTable['torch.nn.modules.activation.Tanh'] = function () {};
constructorTable['torch.nn.modules.activation.Sigmoid'] = function () {};
constructorTable['torch.nn.modules.batchnorm.BatchNorm2d'] = function () {};
Expand Down

0 comments on commit d5e326a

Please sign in to comment.