a8b6963c7786f861c4211a9779c945cb7ab006f9,official/resnet/ctl/ctl_imagenet_main.py,,get_input_dataset,#Any#Any#,71

Before Change


        parse_record_fn=imagenet_preprocessing.parse_record,
        dtype=dtype)

    if strategy:
      test_ds = strategy.experimental_distribute_dataset(test_ds)

  return train_ds, test_ds


def get_num_train_iterations(flags_obj):

After Change


          input_context=ctx)
      return test_ds

  if strategy:
    if isinstance(strategy, tf.distribute.experimental.TPUStrategy):
      test_ds = strategy.experimental_distribute_datasets_from_function(_test_data_fn)
    else:
      test_ds = strategy.experimental_distribute_dataset(_test_data_fn())
  else:
    test_ds = _test_data_fn()

  return train_ds, test_ds


def get_num_train_iterations(flags_obj):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/models
Commit Name: a8b6963c7786f861c4211a9779c945cb7ab006f9
Time: 2019-10-04
Author: jingli@google.com
File Name: official/resnet/ctl/ctl_imagenet_main.py
Class Name:
Method Name: get_input_dataset


Project Name: tensorflow/models
Commit Name: 81d031d0c1da3c15cc08f4becebf83b5dfea1887
Time: 2019-11-18
Author: hongkuny@google.com
File Name: official/modeling/model_training_utils.py
Class Name:
Method Name: _get_input_iterator


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