π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Use identity check for comparison to a singleton (#1198)
deepsource-autofix[bot]1c60bfec4f59
diff --git a/kornia/geometry/conversions.py b/kornia/geometry/conversions.pyindex 22dca74cd..6c93eaad6 100644--- a/kornia/geometry/conversions.py+++ b/kornia/geometry/conversions.py@@ -288,7 +288,7 @@ def angle_axis_to_rotation_matrix(angle_axis: torch.Tensor) -> torch.Tensor:eps = 1e-6mask = (theta2 > eps).view(-1, 1, 1).to(theta2.device)mask_pos = (mask).type_as(theta2)- mask_neg = (mask == False).type_as(theta2) # noqa+ mask_neg = (~mask).type_as(theta2) # noqa# create output pose matrixbatch_size = angle_axis.shape[0]