MCPcopy Create free account
hub / github.com/chibohe/text_recognition_toolbox / __init__

Method __init__

networks/SAR.py:145–150  ·  view source on GitHub ↗
(self, input_size, hidden_size)

Source from the content-addressed store, hash-verified

143
144class LSTMEncoder(nn.Module):
145 def __init__(self, input_size, hidden_size):
146 super(LSTMEncoder, self).__init__()
147 self.input_size = input_size
148 self.hidden_size = hidden_size
149 self.sequence_cell = nn.LSTMCell(input_size, hidden_size)
150 self.avgpool = nn.AdaptiveAvgPool2d((None, 1))
151
152 def forward(self, features):
153 batch_size = features.size(0)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected