-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor SO3 and SE3 to be consistent with functorch #266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. Left a few comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the context name update looks ready to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT, but need to change some of the warning messages. We can add this to #268 to make it easier.
tensor = self._check_tensor(tensor, strict) | ||
else: | ||
warnings.warn( | ||
f"functorch is enabled and tensor is not checked " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this message as well, since this now has nothing to do with functorch
. Maybe "Lie group consistency checks are disabled."? Feel free to change in #268 if that's easier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, good catch!
) | ||
else: | ||
warnings.warn( | ||
"functorch is enabled and the skew-symmetry of hat matrices is " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change this message as well. How about "Lie group checks are disabled, so the skew-symmetry... etc."?
_check &= torch.allclose(matrix[:, 0, 1], -matrix[:, 1, 0]) | ||
else: | ||
warnings.warn( | ||
"functorch is enabled and the skew-symmetry of hat matrices is " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also change this message.
…h#266) * fixed some bugs in SO3.log_map * refactor SO3 to be consistent with functorch * fixed a bug in SO3._project_impl * add more tests for SO3 * SE3 refactored to be consistent with functorch * simplify SO3 and SE3 for functorch * refactor so2 to be consistent with functorch * torch.zeros() -> tensor.new_zeros() * simplify the code using new_zeros * refactor se2 * refactor the projection map for SE3 * fixed a bug in SO2._rotate_from_cos_sin * fixed a bug for functorch * refactor SO3.log_map_impl * refactor SO3 and remove functorch context for log_map_impl() and to_quaternion() * refactor SE3._log_map_impl * SO3 refactored * functorhc refactored * add more warning info for functorch * fixed a bug in warnings message about tensor check for functorch * rename functorch context * rename lie_group_tensor to lie_group * some changes are made * rename lie_group_tensor_check to lie_group_check * fixed the logic bug
Motivation and Context
How Has This Been Tested
Types of changes
Checklist