1f1270f1908e1f0804bf9cfa47f099c8a6cb41fb,cloud_tpu/models/ptb/ptb.py,,main,#Any#,194

Before Change


      use_tpu=FLAGS.use_tpu,
      config=run_config,
      train_batch_size=FLAGS.batch_size)
  estimator.train(input_fn=input_fn, max_steps=FLAGS.train_steps)


if __name__ == "__main__":
  tf.app.run()

After Change



  epoch_size = FLAGS.train_steps // 10
  for train_steps in range(epoch_size, FLAGS.train_steps, epoch_size):
    estimator.train(input_fn=get_input_fn(FLAGS.train_file),
                    max_steps=train_steps)
    estimator.evaluate(input_fn=get_input_fn(FLAGS.valid_file), steps=15)


if __name__ == "__main__":
  tf.app.run()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tpu
Commit Name: 1f1270f1908e1f0804bf9cfa47f099c8a6cb41fb
Time: 2017-11-09
Author: frankchn@google.com
File Name: cloud_tpu/models/ptb/ptb.py
Class Name:
Method Name: main


Project Name: tensorflow/privacy
Commit Name: 10335f61775faabe5e931f30b0ecf91f0719b727
Time: 2020-05-07
Author: schien@google.com
File Name: tutorials/mnist_dpsgd_tutorial.py
Class Name:
Method Name: main


Project Name: tensorflow/models
Commit Name: 4cfa0d3b43ee31bb082b218c12a2e9996498c015
Time: 2017-11-06
Author: neal@nealwu.com
File Name: official/wide_deep/wide_deep.py
Class Name:
Method Name: main