(parser)
| 302 | |
| 303 | |
| 304 | def _add_initialization_args(parser): |
| 305 | group = parser.add_argument_group(title='initialization') |
| 306 | |
| 307 | group.add_argument('--seed', type=int, default=1234, |
| 308 | help='Random seed used for python, numpy, ' |
| 309 | 'pytorch, and cuda.') |
| 310 | group.add_argument('--init-method-std', type=float, default=0.02, |
| 311 | help='Standard deviation of the zero mean normal ' |
| 312 | 'distribution used for weight initialization.') |
| 313 | |
| 314 | return parser |
| 315 | |
| 316 | |
| 317 | def _add_learning_rate_args(parser): |