Skip to content

Commit 1d91c21

Browse files
authored
Update geom.py
1 parent 44f6a8b commit 1d91c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genesis/utils/geom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def quat_to_R(quat, *, out=None):
608608
return _tc_quat_to_R(quat, out=out)
609609
elif all(isinstance(e, np.ndarray) for e in (quat, out) if e is not None):
610610
if out is not None:
611-
quat = quat.astype(out.dtype)
611+
quat = quat.astype(out.dtype, copy=False)
612612
return _np_quat_to_R(quat, out=out)
613613
else:
614614
gs.raise_exception(f"the input must be either torch.Tensor or np.ndarray. got: {type(quat)=}")

0 commit comments

Comments
 (0)