INNER CODE UNIT · Python
create_input
HyperGAN/HyperGAN · hypergan/cli.py:85
def create_input(self, blank=False, rank=None):
klass = GANComponent.lookup_function(None, self.input_config['class'])
self.input_config["blank"]=blank
self.input_config["rank"]=rank
return klass(self.input_config)
def build(self):
return self.gan.build()
def serve(self, gan):
return gan_server(self.gan.session, config)
def sample(self, allow_save=True):
""" Samples to a file. Useful for visualizing the learning process.
If allow_save is False then saves will not be created.