61a619024a39e104d35911a541182de0eb182bde,official/vision/image_classification/dataset_factory.py,DatasetBuilder,build,#DatasetBuilder#Any#,267

Before Change



    builder = builders.get(self.config.builder, None)

    if builder is None:
      raise ValueError("Unknown builder type {}".format(self.config.builder))

    dataset = builder()
    dataset = self.pipeline(dataset, input_context)

    return dataset

After Change


      A TensorFlow dataset outputting batched images and labels.
    
    if strategy:
      if strategy.num_replicas_in_sync != self.config.num_devices:
        logging.warn("Passed a strategy with %d devices, but expected"
                     "%d devices.",
                     strategy.num_replicas_in_sync,
                     self.config.num_devices)

      dataset = strategy.experimental_distribute_datasets_from_function(
          self._build)
    else:
      dataset = self._build()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: tensorflow/models
Commit Name: 61a619024a39e104d35911a541182de0eb182bde
Time: 2020-04-20
Author: gardener@tensorflow.org
File Name: official/vision/image_classification/dataset_factory.py
Class Name: DatasetBuilder
Method Name: build


Project Name: sebp/scikit-survival
Commit Name: f11d0470e94e33a58f7cb2f996fa1abcaf878f3f
Time: 2020-04-10
Author: sebp@k-d-w.org
File Name: sksurv/ensemble/boosting.py
Class Name: GradientBoostingSurvivalAnalysis
Method Name: _check_params


Project Name: sebp/scikit-survival
Commit Name: f11d0470e94e33a58f7cb2f996fa1abcaf878f3f
Time: 2020-04-10
Author: sebp@k-d-w.org
File Name: sksurv/tree/tree.py
Class Name: SurvivalTree
Method Name: _check_params