Skip to content
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

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

luisenp
Copy link
Contributor

@luisenp luisenp commented Jan 17, 2023

No description provided.

@luisenp luisenp added the bug Something isn't working label Jan 17, 2023
@luisenp luisenp requested a review from mhmukadam January 17, 2023 21:37
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 17, 2023
**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:
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@mhmukadam mhmukadam left a 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!

@mhmukadam mhmukadam requested review from bamos and maurimo January 17, 2023 22:36
@luisenp luisenp merged commit 9df6597 into main Jan 18, 2023
@luisenp luisenp deleted the lep.implicit_diff_e2e_test branch January 18, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants