MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / __init__

Method __init__

locationencoder/pe/direct.py:9–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class Direct(nn.Module):
9 def __init__(self):
10 super(Direct, self).__init__()
11
12 # adding this class variable is important to determine
13 # the dimension of the follow-up neural network
14 self.embedding_dim = 2
15
16 def forward(self, coords):
17 # place lon lat coordinates in a -pi, pi range

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected