All algorithm implementations must be spec-aligned for the exact operator variant, tensor shapes/axes, and boundary conditions. Before merging, developers should explicitly verify that special cases and out-of-bound behavior follow the framework/ONNX semantics; avoid “one-size-fits-all” code paths that silently produce wrong results.

Apply these checks: 1) Operator variant semantics must match the spec

2) Boundary/padding modes must apply to every sampled neighbor

3) Use integer-safe floor/ceil for index mapping

4) Shape/axis/loop structure must match the actual Mat layout

5) Special cases must not be routed through general logic

6) Output type must match the source spec

7) Add minimal correctness tests