Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
pbloem committed Mar 31, 2019
1 parent b6319e5 commit c0cc61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def forward(self, vxin, hxin, h):
hx = hx + self.tohori(vx)

if self.gates:
vx = self.gate(vx, h, (self.vvf, self.vvg))
vx = self.gate(vx, h, (self.vvf, self.vvg))
hx = self.gate(hx, h, (self.vhf, self.vhg))

if self.res_connection:
Expand Down
4 changes: 4 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from layers import *

class Gated(nn.Module):
"""
Model combining several gated pixelCNN layers with a conditional input (usually the class)
"""

def __init__(self, input_size, conditional_size, channels, num_layers, k=7, padding=3):
super().__init__()
Expand Down

0 comments on commit c0cc61c

Please sign in to comment.