Skip to content

Commit 951d02a

Browse files
committed
Ensure input rotation matrices are 3x3
1 parent 0fe095c commit 951d02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytorch_kinematics/transforms/transform3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def __init__(
574574
elif R.shape[-1] == 3 and (len(R.shape) == 1 or R.shape[-2] != 3):
575575
R = euler_angles_to_matrix(R, DEFAULT_EULER_CONVENTION)
576576
else:
577-
_check_valid_rotation_matrix(R, tol=orthogonal_tol)
577+
_check_valid_rotation_matrix(R.view(-1, 3, 3), tol=orthogonal_tol)
578578
if R.dim() == 2:
579579
R = R[None]
580580

0 commit comments

Comments
 (0)