@@ -110,7 +110,7 @@ def matrix_to_quaternion(matrix: torch.Tensor) -> torch.Tensor:
110
110
quaternions with real part first, as tensor of shape (..., 4).
111
111
"""
112
112
if matrix .size (- 1 ) != 3 or matrix .size (- 2 ) != 3 :
113
- raise ValueError (f"Invalid rotation matrix shape f { matrix .shape } ." )
113
+ raise ValueError (f"Invalid rotation matrix shape { matrix .shape } ." )
114
114
115
115
batch_dim = matrix .shape [:- 2 ]
116
116
m00 , m01 , m02 , m10 , m11 , m12 , m20 , m21 , m22 = torch .unbind (
@@ -267,7 +267,7 @@ def matrix_to_euler_angles(matrix, convention: str):
267
267
if letter not in ("X" , "Y" , "Z" ):
268
268
raise ValueError (f"Invalid letter { letter } in convention string." )
269
269
if matrix .size (- 1 ) != 3 or matrix .size (- 2 ) != 3 :
270
- raise ValueError (f"Invalid rotation matrix shape f { matrix .shape } ." )
270
+ raise ValueError (f"Invalid rotation matrix shape { matrix .shape } ." )
271
271
i0 = _index_from_letter (convention [0 ])
272
272
i2 = _index_from_letter (convention [2 ])
273
273
tait_bryan = i0 != i2
@@ -430,7 +430,7 @@ def quaternion_apply(quaternion, point):
430
430
Tensor of rotated points of shape (..., 3).
431
431
"""
432
432
if point .size (- 1 ) != 3 :
433
- raise ValueError (f"Points are not in 3D, f { point .shape } ." )
433
+ raise ValueError (f"Points are not in 3D, { point .shape } ." )
434
434
real_parts = point .new_zeros (point .shape [:- 1 ] + (1 ,))
435
435
point_as_quaternion = torch .cat ((real_parts , point ), - 1 )
436
436
out = quaternion_raw_multiply (
0 commit comments