f7f6ccdbb2f8299f910dee548738a8a38cd089a5,models/experimental/dcgan/dcgan_main.py,,main,#Any#,201

Before Change


  if FLAGS.dataset == "mnist":
    dataset = mnist_input
    model = mnist_model
  elif FLAGS.dataset == "cifar":
    dataset = cifar_input
    model = cifar_model
  else:
    raise ValueError("Invalid dataset: %s" % FLAGS.dataset)

  // TPU-based estimator used for TRAIN and EVAL

After Change


      config=config)

  // Get the tf.Estimator `input_fn` for training and evaluation.
  train_eval_input_fn = functools.partial(input_fn, dataset=dataset)
  tf.gfile.MakeDirs(os.path.join(FLAGS.model_dir, "generated_images"))

  current_step = estimator._load_global_step_from_checkpoint_dir(FLAGS.model_dir)   // pylint: disable=protected-access,line-too-long
  tf.logging.info("Starting training for %d steps, current step: %d" %
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: tensorflow/tpu
Commit Name: f7f6ccdbb2f8299f910dee548738a8a38cd089a5
Time: 2019-02-07
Author: pengchong@google.com
File Name: models/experimental/dcgan/dcgan_main.py
Class Name:
Method Name: main


Project Name: biocore/scikit-bio
Commit Name: 337a923ae44506dad5e142b75a78cfaf79f4f261
Time: 2016-04-19
Author: mcdonadt@colorado.edu
File Name: skbio/diversity/_driver.py
Class Name:
Method Name: beta_diversity


Project Name: home-assistant/home-assistant
Commit Name: 3b7b12bbd5bc0787d71a7423da50655b171aa9e6
Time: 2016-01-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/automation/numeric_state.py
Class Name:
Method Name: if_action


Project Name: home-assistant/home-assistant
Commit Name: 3b7b12bbd5bc0787d71a7423da50655b171aa9e6
Time: 2016-01-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/automation/numeric_state.py
Class Name:
Method Name: trigger


Project Name: tensorflow/magenta
Commit Name: b1d84fbbae7b49d99bb6f1292c7f05ae064a2590
Time: 2017-08-10
Author: iansimon@users.noreply.github.com
File Name: magenta/models/performance_rnn/performance_model.py
Class Name: PerformanceRnnModel
Method Name: generate_performance