b78d0685b201fa433507a4d4e1d0a0f70a0dc783,scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py,Cifar10CnnBenchmark,benchmarkCifar10Cnn,#Cifar10CnnBenchmark#Any#Any#,35

Before Change


        self._total_time = time.time() - start_time - time_callback.times[0]

        // Save model and weights
        if not os.path.isdir(save_dir):
          os.makedirs(save_dir)
        model_path = os.path.join(save_dir, model_name)
        model.save(model_path)
        print("Saved trained model at %s " % model_path)

After Change


        // initiate RMSprop optimizer
        opt = keras.optimizers.rmsprop(lr=0.0001, decay=1e-6)

        if str(keras_backend) is "tensorflow" and gpu_count > 1:
          model = multi_gpu_model(model, gpus=gpu_count)

        // Let"s train the model using RMSprop
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/benchmarks
Commit Name: b78d0685b201fa433507a4d4e1d0a0f70a0dc783
Time: 2017-11-01
Author: anjalisridhar@google.com
File Name: scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py
Class Name: Cifar10CnnBenchmark
Method Name: benchmarkCifar10Cnn


Project Name: NifTK/NiftyNet
Commit Name: d67181e84370f11479e2872271cae56cc2f3b8b3
Time: 2017-08-22
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _summary_dir


Project Name: dmlc/gluon-nlp
Commit Name: 29c957249fbdd4d5f7f517772835b7dc31a85e94
Time: 2020-01-15
Author: linhaibin.eric@gmail.com
File Name: src/gluonnlp/data/utils.py
Class Name:
Method Name: _load_pretrained_vocab