8000 Why I get CUDA error when I alter weight decay? · Issue #2468 · pytorch/pytorch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Why I get CUDA error when I alter weight decay? #2468

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

Closed
yxchng opened this issue Aug 17, 2017 · 1 comment
Closed

Why I get CUDA error when I alter weight decay? #2468

yxchng opened this issue Aug 17, 2017 · 1 comment

Comments

@yxchng
Copy link
yxchng commented Aug 17, 2017

screenshot from 2017-08-17 12-27-05

It only works for a specific value of weight decay which is 5e-4. What can possibly be the reason? How does weight decay affect CUDA?

@soumith
Copy link
Member
soumith commented Aug 30, 2017

the targets you are giving to criterion is larger than the number of classes you have. Hence there is an out-of-bounds memory access happening. This is unrelated to your weight decay change. Check that your dataset targets are all between 0 and n-1 where n is the number of classes in your output layer.

@soumith soumith closed this as completed Aug 30, 2017
houseroad added a commit to houseroad/pytorch that referenced this issue Dec 10, 2019
…c39b3b (pytorch#30619)

Summary:
Pull Request resolved: pytorch#30619

Previous import was fea8568cac61a482ed208748fdc0e1a8e47f62f5

Included changes:
- **[c08a7b76](onnx/onnx@c08a7b76)**: doc: fix some typos at ONNXIFI (pytorch#2473) <Yorkie Liu>
- **[4be12d46](onnx/onnx@4be12d46)**: remove workshop update since it is done (pytorch#2460) <Prasanth Pulavarthi>
- **[86107d1b](onnx/onnx@86107d1b)**: Updated with correct URL to LICENSE (pytorch#2468) <Ryan Loney>
- **[9bf6fbb6](onnx/onnx@9bf6fbb6)**: Update Argmin/Argmax (pytorch#2461) <Lara Haidar>
- **[748d81b8](onnx/onnx@748d81b8)**: Fix windows conda build (pytorch#2452) <Ashwini Khade>
- **[a32db1c5](onnx/onnx@a32db1c5)**: Delete duplicate word in comment (pytorch#2439) <Haibo Hao>
- **[e108da9a](onnx/onnx@e108da9a)**: Fix bug in function body verifier (pytorch#2390) <G. Ramalingam>
- **[c3d3ef82](onnx/onnx@c3d3ef82)**: docs: fix typo in IR.md (pytorch#2441) <Elliot Waite>

Test Plan: ci

Reviewed By: hl475

Differential Revision: D18766132

fbshipit-source-id: f5767698c83ee7f0055f4cb87db9fb434c0dc9df
facebook-github-bot pushed a commit that referenced this issue Dec 10, 2019
…c39b3b (#30619)

Summary:
Pull Request resolved: #30619

Previous import was fea8568cac61a482ed208748fdc0e1a8e47f62f5

Included changes:
- **[c08a7b76](onnx/onnx@c08a7b76)**: doc: fix some typos at ONNXIFI (#2473) <Yorkie Liu>
- **[4be12d46](onnx/onnx@4be12d46)**: remove workshop update since it is done (#2460) <Prasanth Pulavarthi>
- **[86107d1b](onnx/onnx@86107d1b)**: Updated with correct URL to LICENSE (#2468) <Ryan Loney>
- **[9bf6fbb6](onnx/onnx@9bf6fbb6)**: Update Argmin/Argmax (#2461) <Lara Haidar>
- **[748d81b8](onnx/onnx@748d81b8)**: Fix windows conda build (#2452) <Ashwini Khade>
- **[a32db1c5](onnx/onnx@a32db1c5)**: Delete duplicate word in comment (#2439) <Haibo Hao>
- **[e108da9a](onnx/onnx@e108da9a)**: Fix bug in function body verifier (#2390) <G. Ramalingam>
- **[c3d3ef82](onnx/onnx@c3d3ef82)**: docs: fix typo in IR.md (#2441) <Elliot Waite>

Test Plan: ci

Reviewed By: hl475

Differential Revision: D18766132

fbshipit-source-id: 13c04f21399579acb87a8f9fac2e4c329b0720b8
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this issue Jan 30, 2020
…c39b3b (pytorch#30619)

Summary:
Pull Request resolved: pytorch#30619

Previous import was fea8568cac61a482ed208748fdc0e1a8e47f62f5

Included changes:
- **[c08a7b76](onnx/onnx@c08a7b76)**: doc: fix some typos at ONNXIFI (pytorch#2473) <Yorkie Liu>
- **[4be12d46](onnx/onnx@4be12d46)**: remove workshop update since it is done (pytorch#2460) <Prasanth Pulavarthi>
- **[86107d1b](onnx/onnx@86107d1b)**: Updated with correct URL to LICENSE (pytorch#2468) <Ryan Loney>
- **[9bf6fbb6](onnx/onnx@9bf6fbb6)**: Update Argmin/Argmax (pytorch#2461) <Lara Haidar>
- **[748d81b8](onnx/onnx@748d81b8)**: Fix windows conda build (pytorch#2452) <Ashwini Khade>
- **[a32db1c5](onnx/onnx@a32db1c5)**: Delete duplicate word in comment (pytorch#2439) <Haibo Hao>
- **[e108da9a](onnx/onnx@e108da9a)**: Fix bug in function body verifier (pytorch#2390) <G. Ramalingam>
- **[c3d3ef82](onnx/onnx@c3d3ef82)**: docs: fix typo in IR.md (pytorch#2441) <Elliot Waite>

Test Plan: ci

Reviewed By: hl475

Differential Revision: D18766132

fbshipit-source-id: 13c04f21399579acb87a8f9fac2e4c329b0720b8
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

2 participants
0