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

Class QueryNetwork

utils/spatial_att_github.py:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
182
183class QueryNetwork(nn.Module):
184 def __init__(self):
185 super(QueryNetwork, self).__init__()
186 # TODO: Add proper non-linearity.
187 self.model = nn.Sequential(
188 nn.Linear(256, 128), nn.ReLU(), nn.Linear(128, 288), nn.ReLU(), nn.Linear(288, 288)
189 )
190
191 def forward(self, query):
192 out = self.model(query)
193 return out.reshape(-1, 4, 72)
194
195
196class SpatialBasis:

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected