fc148e1a29e3d7893c438f701b8422225c95fc66,examples/classification.py,MNISTGenerator,create,#MNISTGenerator#,66
Before Change
ops.describe("custom_generator")
net = gan.inputs.x
net = ops.reshape(net, [gan.batch_size(), -1])
net = ops.linear(net, end_features)
net = ops.lookup("tanh")(net)
self.fy = net
self.sample = net
return net
After Change
class MNISTGenerator(BaseGenerator):
def create(self):
self.linear = torch.nn.Linear(28*28*1, 1024)
self.relu = torch.nn.ReLU()
self.linear2 = torch.nn.Linear(1024, 10)
self.sigmoid = torch.nn.Sigmoid()
def forward(self, input, context={}):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: fc148e1a29e3d7893c438f701b8422225c95fc66
Time: 2020-07-10
Author: mikkel@255bits.com
File Name: examples/classification.py
Class Name: MNISTGenerator
Method Name: create
Project Name: kengz/SLM-Lab
Commit Name: 0ac2b33e8c63304a50db7d2b484368299706b58b
Time: 2018-11-14
Author: kengzwl@gmail.com
File Name: slm_lab/agent/net/recurrent.py
Class Name: RecurrentNet
Method Name: __init__
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_linear