Closed eebeer closed 6 years ago
Does it work if you replace this by Eltwise = lambda param: [torch.mul, torch.add, torch.max][param.get('operation', 1)]
?
I put this in!
Also please mind that I do not support BatchNorm layer. But feel free to send a PR if you implement some support.
When prototxt does not have operation in eltwise layer, it raises error (ex: https://github.com/KaimingHe/deep-residual-networks/blob/master/prototxt/ResNet-50-deploy.prototxt).
In caffe.proto, default operation is set as SUM.