Skip to content

Commit

Permalink
Forward current environment variables when autotuning batch size (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln authored Jul 1, 2021
1 parent 1045399 commit 9494332
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions opennmt/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,8 @@ def _auto_tune_batch_size(
with tf.io.gfile.GFile(config_path, mode="w") as config_file:
yaml.dump(run_config, config_file)

env = {
"TF_CPP_MIN_LOG_LEVEL": "2",
}
env = os.environ.copy()
env["TF_CPP_MIN_LOG_LEVEL"] = "2"
args = [
sys.executable or "python",
"-m",
Expand Down

0 comments on commit 9494332

Please sign in to comment.