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

Method __init__

locationencoder/pe/cartesian3d.py:10–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected