Coverage for hypergan/generators/fully_connected_generator.py : 30%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
return []
gan = self.gan ops = self.ops config = self.config activation = ops.lookup(config.activation or 'lrelu')
print("[dcgan] NET IS", net)
net = ops.linear(net, 1024)
shape = ops.shape(net) x_shape = ops.shape(self.gan.inputs.x) output_size = x_shape[1]*x_shape[2]*x_shape[3] print("Output size", output_size)
net = activation(net) net = ops.linear(net, 2*1024) net = activation(net) net = ops.linear(net, output_size) net = ops.lookup('tanh')(net)
net = ops.reshape(net, output_size)
self.sample = net return self.sample |