9a221ae50830159492ba6846f9680f2cfff8c552,hypergan/gan.py,GAN,train,#GAN#,64

Before Change


            self.sess = tf.Session(config=tf.ConfigProto())

    def train(self):
        return self.config["trainer.train"](self)

    def save(self, save_file):
        saver = tf.train.Saver()
        saver.save(self.sess, save_file)

After Change


            self.sess = tf.Session(config=tf.ConfigProto())

    def train(self):
        trainer = hc.Config(hc.lookup_functions(self.config.trainer))
        return trainer.run(self)

    def save(self, save_file):
        saver = tf.train.Saver()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 9a221ae50830159492ba6846f9680f2cfff8c552
Time: 2017-02-07
Author: mikkel@255bits.com
File Name: hypergan/gan.py
Class Name: GAN
Method Name: train


Project Name: streamlit/streamlit
Commit Name: da3894b5ae20d2f2851504e0fed6a946247f733f
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_option


Project Name: MIC-DKFZ/trixi
Commit Name: 51dfce4069aa55ea5aecda4cd13472335e6fab81
Time: 2018-02-02
Author: jens.petersen@dkfz.de
File Name: vislogger/experimentlogger.py
Class Name: ExperimentLogger
Method Name: load_config


Project Name: HyperGAN/HyperGAN
Commit Name: 4991e9fedc1615297077091b192feed630b02f89
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_deconv


Project Name: HyperGAN/HyperGAN
Commit Name: 894a2b921ea0ba9969cec62b484d03ab706ad25a
Time: 2020-02-07
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_conv