kornia/kornia
Auf GitHub ansehen[Feature]: Increase test coverage for Se3, SO3 and So2 (exception, gradcheck, JIT, module)
Open
#3.531 geöffnet am 27. Jan. 2026
help wantedtriage
Repository-Metriken
- Stars
- (8.677 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 19T 9h) (7 gemergte PRs in 30 T)
Beschreibung
Title: Increase test coverage for Se3, So3 and So2 (exception, gradcheck, JIT, module)
Description
The TestSe3 class in the test suite currently contains empty placeholder methods for several critical test categories:
test_exception: Should verify that invalid inputs (e.g., mismatched batch sizes between rotation and translation, or incorrect tensor shapes) raise appropriate errors.test_gradcheck: Should perform a gradient check (usingtorch.autograd.gradcheck) to ensure the Se3 operations are differentiable and the gradients are numerically correct.test_jit: Should verify that theSe3class and its methods can be correctly scripted or traced by TorchScript (torch.jit).test_module: Should verify thatSe3objects can be used as parameters or buffers within ann.Moduleand properly saved/loaded.
Goal
Implement these missing tests to ensure the robustness and production-readiness of the Se3, So3 and So2 geometry primitives.