Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b71d36

Browse files
authored
Fix opt_level command line arg in instructions. (#713)
Actual flag is --opt_level and copy pasting the example results in an unrecognized arguments error.
1 parent 3f94528 commit 5b71d36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/dcgan/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ With the new Amp API **you never need to explicitly convert your model, or the i
2929

3030
"Pure FP32" training:
3131
```
32-
$ python main_amp.py --opt-level O0
32+
$ python main_amp.py --opt_level O0
3333
```
3434
Recommended mixed precision training:
3535
```
36-
$ python main_amp.py --opt-level O1
36+
$ python main_amp.py --opt_level O1
3737
```
3838

3939
Have a look at the original [DCGAN example](https://github.com/pytorch/examples/tree/master/dcgan) for more information about the used arguments.
4040

41-
To enable mixed precision training, we introduce the `--opt-level` argument.
41+
To enable mixed precision training, we introduce the `--opt_level` argument.

0 commit comments

Comments
 (0)