71900d314ad4e503f80e67b6a67be42c8b92f9ee,models/official/detection/main.py,,main,#,67
Before Change
current_cycle_last_train_step = ((cycle + 1)
* params.eval.num_steps_per_eval)
executor.train(train_input_fn, current_cycle_last_train_step)
executor.evaluate(
eval_input_fn,
params.eval.eval_samples // params.eval.eval_batch_size)
else:
logging.info("Mode not found.")
After Change
params.eval.eval_file_pattern, params, mode=ModeKeys.PREDICT_WITH_GT,
dataset_type=params.eval.eval_dataset_type)
if params.eval.eval_samples:
eval_times = params.eval.eval_samples // params.eval.eval_batch_size
else:
eval_times = None
// Runs the model.
if FLAGS.mode == "train":
config_utils.save_config(params, params.model_dir)
executor.train(train_input_fn, params.train.total_steps)
if FLAGS.eval_after_training:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tensorflow/tpu
Commit Name: 71900d314ad4e503f80e67b6a67be42c8b92f9ee
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/main.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: D2KLab/entity2rec
Commit Name: d543ff83ab1498a61386d258c6689e88b0522ee3
Time: 2018-07-20
Author: enricopalumbo0@gmail.com
File Name: entity2rec/main.py
Class Name:
Method Name: