ad09cf49a8ec2757c475002909e029d1a9ade14c,official/vision/image_classification/resnet/resnet_imagenet_main.py,,run,#Any#,41

Before Change


  data_format = flags_obj.data_format
  if data_format is None:
    data_format = ("channels_first"
                   if tf.test.is_built_with_cuda() else "channels_last")
  tf.keras.backend.set_image_data_format(data_format)

  // Configures cluster spec for distribution strategy.

After Change



  data_format = flags_obj.data_format
  if data_format is None:
    data_format = ("channels_first" if tf.config.list_physical_devices("GPU")
                   else "channels_last")
  tf.keras.backend.set_image_data_format(data_format)

  // Configures cluster spec for distribution strategy.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/vision/image_classification/resnet/resnet_imagenet_main.py
Class Name:
Method Name: run


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/r1/resnet/resnet_model.py
Class Name: Model
Method Name: __init__


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/r1/mnist/mnist.py
Class Name:
Method Name: run_mnist


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/modeling/model_training_utils.py
Class Name:
Method Name: run_customized_training_loop


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/benchmark/models/resnet_cifar_main.py
Class Name:
Method Name: run


Project Name: tensorflow/models
Commit Name: ad09cf49a8ec2757c475002909e029d1a9ade14c
Time: 2020-03-25
Author: reedwm@google.com
File Name: official/vision/image_classification/resnet/resnet_ctl_imagenet_main.py
Class Name:
Method Name: run