Open keunwoochoi opened 6 years ago
@keunwoochoi You're right.
And more correctly, tanh receives filter
, sigmoid receives gate
and z
is multiplied them.
def forward(self, x, skip_size)
filter = self.dilated(x)
gate = self.dilated(x)
# pixelCNN
filtered = self.gated_tanh(filter)
gated = self.gate_sigmoid(gate)
z = filtered * gated
Thanks your comments.
Hi, thanks for the codes!
Although Figure 4 in the original paper is described as in your code, Eq. 2 (which I assume to be more correct) says there are two different convolutions, i.e., I think it should be
(
ResidualBlock
)instead of
But I'm also guessing, have you possibly looked into it before?