Skip to content
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

niform_ expects to return a [from, to) range, but found from=1 > to=0.02 #12

Open
Four97 opened this issue Sep 30, 2020 · 8 comments
Open

Comments

@Four97
Copy link

Four97 commented Sep 30, 2020

init.uniform_(m.weight.data, 1.0, gain)
File "/home/user/.local/lib/python3.5/site-packages/torch/nn/init.py", line 88, in uniform_
return no_grad_uniform(tensor, a, b)
File "/home/user/.local/lib/python3.5/site-packages/torch/nn/init.py", line 14, in no_grad_uniform
return tensor.uniform_(a, b)
RuntimeError: uniform_ expects to return a [from, to) range, but found from=1 > to=0.02

1.0 > 0.02 is the networks.py has some mistakes?

@mengxzh15
Copy link

i met same question,i don't know why

@mengxzh15
Copy link

who can help me solve this problem?please

@Four97
Copy link
Author

Four97 commented Oct 6, 2020

i met same question,i don't know why

i changed the 'uniform_' to 'normal_'

and could you give me your email or wechat or qq ,then we can discuss some quetions about this project

@liujianghao1023
Copy link

可以一起交流么 我的qq582379270

@liujianghao1023
Copy link

把 0.02和1换下位置

@hangxiaotian
Copy link

i met same question,i don't know why

i changed the 'uniform_' to 'normal_'

and could you give me your email or wechat or qq ,then we can discuss some quetions about this project
可以一起交流,1265502890

@wangjing835
Copy link

i met same question,i don't know why

i changed the 'uniform_' to 'normal_'

and could you give me your email or wechat or qq ,then we can discuss some quetions about this project
可以一起交流,1265502890

您好,请问可以加qq交流几个问题吗?741100750

@Chzzi
Copy link

Chzzi commented Jun 20, 2021

把 0.02和1换下位置

Excuse me, have you already solved this problem? And could you please tell me where is positation you change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants