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
  est = tf.contrib.tpu.TPUEstimator(
      model_fn=model_fn,

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: 3

Non-data size: 10

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: nilearn/nilearn
Commit Name: 31967a2f696ff5bd89e203ca9006e5df487f784b
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/space_net.py
Class Name: _BaseCV
Method Name: fit


Project Name: nilearn/nilearn
Commit Name: a3da3ef19a391b8f82901004d49f5d20b637d3dc
Time: 2015-07-28
Author: elvis.dohmatob@inria.fr
File Name: nilearn/decoding/space_net.py
Class Name: _BaseCV
Method Name: fit