(v: torch.Tensor)
| 19 | |
| 20 | |
| 21 | def 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 | |
| 27 | def affine_padding(c2w: torch.Tensor): |
nothing calls this directly
no outgoing calls
no test coverage detected