Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sooftware authored Jun 4, 2021
1 parent 82856b9 commit cd6a20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def train(config: DictConfig) -> nn.DataParallel:
torch.manual_seed(config.train.seed)
torch.cuda.manual_seed_all(config.train.seed)
device = check_envirionment(config.train.use_cuda)
if config.train.num_threads and int(config.train.num_threads) > 0:
if hasattr(config.train, "num_threads") and int(config.train.num_threads) > 0:
torch.set_num_threads(config.train.num_threads)

vocab = KsponSpeechVocabulary(
Expand Down

0 comments on commit cd6a20a

Please sign in to comment.