Traceback (most recent call last):
File “reload-AlexNet.py”, line 103, in
outputs = alexnet(frame)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py”, line 491, in call
result = self.forward(*input, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/torchvision/models/alexnet.py”, line 44, in forward
x = self.features(x)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py”, line 491, in call
result = self.forward(*input, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py”, line 97, in forward
input = module(input)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py”, line 491, in call
result = self.forward(*input, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/activation.py”, line 50, in forward
return F.threshold(input, self.threshold, self.value, self.inplace)
File “/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py”, line 537, in getattr
type(self).name, name))
AttributeError: ‘ReLU’ object has no attribute ‘threshold’
Does anyone know how to solve this issue ?