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

Method forward

locationencoder/pe/direct.py:16–19  ·  view source on GitHub ↗
(self, coords)

Source from the content-addressed store, hash-verified

14 self.embedding_dim = 2
15
16 def forward(self, coords):
17 # place lon lat coordinates in a -pi, pi range
18 coords = torch.deg2rad(coords) - torch.pi
19 return coords

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected