New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: __init__() got an unexpected keyword argument 'reduction' #7
Comments
make sure you have updated utils.pytorch (git pull) and latest pytorch (>0.4.1) |
As a side question, did you usea single gpu with batch of 256? or multiple gpus? if so how many? |
@Coderx7 Hello,did you solve your problem with upgrade pytorch version |
@qiyayun : I never upgraded to 0.4.1 so I have no idea if that solves the issue. I simply never used the script when I got that error. |
My torch version is 0.4.1.
In my experiment, I didn't meet the reduction problem. However, I got 'named_parameters() got an unexpected keyword argument 'recurse' for line 26th in utils.pytorch/param_filter.py. I checked the tutorial in pytorch website https://pytorch.org/docs/stable/nn.html , it showed 'recurse' was indeed available. It's strange why give such error. |
After a check, the 'recurse' doesn't exist in the pytorch 0.4.1 version. and it does in the v1.0 version. |
Hi,
When I try to run the script, I face this error , whats wrong ?
TypeError: __init__() got an unexpected keyword argument 'reduction'
I'm calling the script like this :
I'm using Python3.6 and Pytorch 0.4
Thanks alot in advance
The text was updated successfully, but these errors were encountered: