9fbc93abbbe4890b877c38082f6b73e1a32ea0e3,examples/static-batch-test.py,,,#,28

Before Change


config = selector.load_or_create_config(config_filename, config)

// TODO refactor, shared in CLI
config["dtype"]=tf.float32
config["batch_size"] = args.batch_size

if args.add_full_image:
    config["add_full_image"]=args.add_full_image

After Change


config["generator"]=random_search.generator_config()
config["discriminator"]=random_search.discriminator_config()

config_name="static-batch-"+str(uuid.uuid4())
config_filename = os.path.expanduser("~/.hypergan/configs/"+config_name+".json")
print("Saving config to ", config_filename)

selector.save(config_filename, config)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 9fbc93abbbe4890b877c38082f6b73e1a32ea0e3
Time: 2017-06-07
Author: mikkel@255bits.com
File Name: examples/static-batch-test.py
Class Name:
Method Name:


Project Name: HyperGAN/HyperGAN
Commit Name: 6a65e91b8303144eda83efca5f5a4d9806fba6b7
Time: 2017-06-12
Author: mikkel@255bits.com
File Name: examples/alignment-test.py
Class Name:
Method Name:


Project Name: hanxiao/bert-as-service
Commit Name: 273be0d5affb7d9f3367b1e01dc3abc3b790a73e
Time: 2018-11-25
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run