MCPcopy Create free account
hub / github.com/dcharatan/flowmap / MappingL1

Class MappingL1

flowmap/loss/mapping/mapping_l1.py:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class MappingL1(Mapping[MappingL1Cfg]):
16 def forward_undistorted(
17 self,
18 delta: Float[Tensor, "*batch 2"],
19 ) -> Float[Tensor, " *batch"]:
20 return delta.norm(dim=-1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected