-
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
Use IMPLICIT for test_theseus_layer and fix related bugs #431
Conversation
**kwargs, | ||
) -> Tuple[torch.Tensor, bool]: | ||
tensor_dict, err = self._compute_retracted_tensors_and_error( | ||
delta, converged_indices, force_update | ||
) | ||
reject_indices = self._complete_step(delta, err, previous_err, **kwargs) | ||
if truncated_grad_loop: |
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.
Can't remember, is the implicit grad part of the truncated_grad_loop flag?
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.
Yes, truncated_grad_loop
is the final attached loop of "TRUNCATED" and "IMPLICIT". I was thinking that this is kind of a confusing name tbh.
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.
Yeah we could rename to implicit_and_trunc_grad_block
or maybe ..._loop
is okay. We can also add a comment to clarify.
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.
Nice catch, looks good!
No description provided.