MCPcopy Create free account
hub / github.com/Ropedia/SpatialBench / vector_padding

Function vector_padding

benchmark/models/scal3r/utils/math_utils.py:21–24  ·  view source on GitHub ↗
(v: torch.Tensor)

Source from the content-addressed store, hash-verified

19
20
21def vector_padding(v: torch.Tensor):
22 pad = torch.zeros_like(v[..., -1:])
23 ext = torch.cat([v, pad], dim=-1)
24 return ext
25
26
27def affine_padding(c2w: torch.Tensor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected