Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lmzintgraf committed Nov 17, 2020
1 parent d6a141f commit 570eb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -89,7 +89,7 @@ def main():
if torch.backends.cudnn.enabled:
warnings.warn('Running with deterministic CUDNN.')
if args.num_processes > 1:
raise RuntimeError('If you want fully deterministic code, run it with num_processes=1.'
raise RuntimeError('If you want fully deterministic code, use num_processes 1.'
'Warning: This will slow things down and might break A2C if '
'policy_num_steps < env._max_episode_steps.')

Expand Down
2 changes: 1 addition & 1 deletion utils/helpers.py
Expand Up @@ -150,7 +150,7 @@ def seed(seed, deterministic_execution=False):
torch.backends.cudnn.benchmark = False
else:
print('Note that due to parallel processing results will be similar but not identical. '
'Use only one process and set --deterministic_execution to True if you want identical results '
'If you want identical results, use --num_processes 1 and --deterministic_execution True '
'(only recommended for debugging).')


Expand Down

0 comments on commit 570eb2a

Please sign in to comment.