optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
674 stars 176 forks source link

Minor code change suggestions to `pytorch_distributed_spawn.py` #175

Closed nzw0301 closed 1 year ago

nzw0301 commented 1 year ago

Motivation

I'd like to suggest two minor changes to the example code for readability.

Description of the changes

  1. Clarify the device variable by renaming devi with device
  2. Remove str cast for the master port by specifying str at argparse
nzw0301 commented 1 year ago

@li-li-github Thanks!