Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d06404f commit c1378e6Copy full SHA for c1378e6
1 file changed
examples/imagenet/main_amp.py
@@ -81,7 +81,7 @@ def parse():
81
help='Only run 10 iterations for profiling.')
82
parser.add_argument('--deterministic', action='store_true')
83
84
- parser.add_argument("--local_rank", default=0, type=int)
+ parser.add_argument("--local_rank", default=os.getenv('LOCAL_RANK', 0), type=int)
85
parser.add_argument('--sync_bn', action='store_true',
86
help='enabling apex sync BN.')
87
0 commit comments