MCPcopy Create free account
hub / github.com/BIT-MCS/DRL-eFresh / __init__

Method __init__

utils/spatial_att_github.py:152–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150
151class VisionNetwork(nn.Module):
152 def __init__(self):
153 super(VisionNetwork, self).__init__()
154 self.vision_cnn = nn.Sequential(
155 nn.Conv2d(
156 in_channels=3,
157 out_channels=32,
158 kernel_size=(8, 8),
159 stride=4,
160 padding=1, # Padding s.t. the output shapes match the paper.
161 ),
162 nn.Conv2d(
163 in_channels=32,
164 out_channels=64,
165 kernel_size=(4, 4),
166 stride=2,
167 padding=2, # Padding s.t. the output shapes match the paper.
168 ),
169 )
170 self.vision_lstm = ConvLSTMCell(
171 input_channels=64, hidden_channels=128, kernel_size=3
172 )
173
174 def reset(self):
175 self.vision_lstm.reset()

Callers

nothing calls this directly

Calls 2

ConvLSTMCellClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected