MCPcopy
hub / github.com/hanzhanggit/StackGAN / generate_condition

Method generate_condition

stageI/model.py:43–51  ·  view source on GitHub ↗
(self, c_var)

Source from the content-addressed store, hash-verified

41
42 # g-net
43 def generate_condition(self, c_var):
44 conditions =\
45 (pt.wrap(c_var).
46 flatten().
47 custom_fully_connected(self.ef_dim * 2).
48 apply(leaky_rectify, leakiness=0.2))
49 mean = conditions[:, :self.ef_dim]
50 log_sigma = conditions[:, self.ef_dim:]
51 return [mean, log_sigma]
52
53 def generator(self, z_var):
54 node1_0 =\

Callers 3

sample_encoded_contextFunction · 0.45
sample_encoded_contextFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected