I run the code with python main.py, here comes this error.
torch/nn/modules/linear.py", line 42, in __init__
self.reset_parameters()
File "/Users/Tiger/projects/NoisyNet-A3C/model.py", line 23, in reset_parameters
init.constant(self.sigma_weight, 0.0017)
File "/Users/Tiger/anaconda/envs/pytorch3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 238, in __getattr__
type(self).__name__, name))
AttributeError: 'NoisyLinear' object has no attribute 'sigma_weight'
Any suggestion? Maybe you can show the version of pytorch. :) Mine is 0.1.12_2.
Maybe this is useful to solve this problem. It has been merged.
I run the code with
python main.py
, here comes this error.Any suggestion? Maybe you can show the version of pytorch. :) Mine is 0.1.12_2.
Maybe this is useful to solve this problem. It has been merged.
https://github.com/pytorch/pytorch/issues/1126