MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / __init__

Method __init__

core/update.py:27–31  ·  view source on GitHub ↗
(self, hidden_dim=128, input_dim=192+128)

Source from the content-addressed store, hash-verified

25
26class ConvGRU(nn.Module):
27 def __init__(self, hidden_dim=128, input_dim=192+128):
28 super(ConvGRU, self).__init__()
29 self.convz = nn.Conv2d(hidden_dim+input_dim, hidden_dim, 3, padding=1)
30 self.convr = nn.Conv2d(hidden_dim+input_dim, hidden_dim, 3, padding=1)
31 self.convq = nn.Conv2d(hidden_dim+input_dim, hidden_dim, 3, padding=1)
32
33 def forward(self, h, x):
34 hx = torch.cat([h, x], dim=1)

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected