754226949c99108ef22cbf8009e8c40efbbc7b5a,tf_agents/experimental/distributed/examples/sac/sac_train.py,,train,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,104

Before Change



  // Run the training loop.
  // TODO(b/162440911) change the loop use train_step to handle preemptions
  for _ in range(num_iterations):
    sac_learner.run(iterations=learner_iterations_per_call)
    variable_container.push(variables)


def main(_):
  logging.set_verbosity(logging.INFO)
  tf.enable_v2_behavior()

After Change


      strategy=strategy)

  // Run the training loop.
  while train_step.numpy() < num_iterations:
    sac_learner.run(iterations=learner_iterations_per_call)
    variable_container.push(variables)


def main(_):
  logging.set_verbosity(logging.INFO)
  tf.enable_v2_behavior()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: tensorflow/agents
Commit Name: 754226949c99108ef22cbf8009e8c40efbbc7b5a
Time: 2021-01-24
Author: ormandi@google.com
File Name: tf_agents/experimental/distributed/examples/sac/sac_train.py
Class Name:
Method Name: train


Project Name: tensorflow/agents
Commit Name: 754226949c99108ef22cbf8009e8c40efbbc7b5a
Time: 2021-01-24
Author: ormandi@google.com
File Name: tf_agents/experimental/distributed/examples/sac/sac_collect.py
Class Name:
Method Name: collect


Project Name: tensorflow/agents
Commit Name: a3c0931db118404cf90d91d4f44a8736c10e835a
Time: 2020-07-15
Author: leekh@google.com
File Name: tf_agents/agents/sac/examples/v2/train_eval.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/models
Commit Name: e170a8bad93da7676dadfdc8be32072a7bb46f75
Time: 2019-08-30
Author: gardener@tensorflow.org
File Name: official/transformer/v2/transformer_main.py
Class Name: TransformerTask
Method Name: train