18d05ad3df0b6bd5f386d3373f59561f5fa004b1,official/resnet/resnet_run_loop.py,,resnet_main,#Any#Any#Any#Any#,352
Before Change
allow_soft_placement=True)
// Set up a RunConfig to save checkpoint and set session config.
run_config = tf .estimator.RunConfig().replace(save_checkpoints_secs=1e9,
session_config=session_config)
classifier = tf.estimator.Estimator(
model_fn=model_function, model_dir=flags_obj.model_dir, config=run_config,
After Change
intra_op_parallelism_threads=flags_obj.intra_op_parallelism_threads,
allow_soft_placement=True)
if flags_core.get_num_gpus(flags_obj) == 0:
distribution = tf.contrib.distribute.OneDeviceStrategy("device:CPU:0")
elif flags_core.get_num_gpus(flags_obj) == 1:
distribution = tf.contrib.distribute.OneDeviceStrategy("device:GPU:0")
else:
distribution = tf.contrib.distribute.MirroredStrategy(
num_gpus=flags_core.get_num_gpus(flags_obj)
)
run_config = tf.estimator.RunConfig(train_distribute=distribution,
session_config=session_config)
classifier = tf.estimator.Estimator(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: tensorflow/models
Commit Name: 18d05ad3df0b6bd5f386d3373f59561f5fa004b1
Time: 2018-05-03
Author: taylorrobie@google.com
File Name: official/resnet/resnet_run_loop.py
Class Name:
Method Name: resnet_main
Project Name: tensorflow/models
Commit Name: 32aa656373dd483f9a6a8aa45c51b595699e06e7
Time: 2018-04-12
Author: taylorrobie@google.com
File Name: official/resnet/resnet_run_loop.py
Class Name:
Method Name: resnet_main
Project Name: tensorflow/models
Commit Name: b36c01b654937c6d949d470f8b3f495c5c15b7f6
Time: 2017-07-06
Author: marianne.monteiro@ccc.ufcg.edu.br
File Name: tutorials/image/cifar10_estimator/cifar10_main.py
Class Name:
Method Name: main