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

Mm/onnx parameter tweaks #443

Merged
merged 26 commits into from
Nov 22, 2024
Merged

Mm/onnx parameter tweaks #443

merged 26 commits into from
Nov 22, 2024

Conversation

mmcleod89
Copy link
Contributor

@mmcleod89 mmcleod89 commented Nov 21, 2024

  • Set the step size correctly for onnx model and standard l2-norm gradient
  • Replace vague greek letters with descriptive names

@mmcleod89 mmcleod89 requested a review from 20DM November 21, 2024 12:49
Copy link
Collaborator

@20DM 20DM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 🚀 Just a couple of minor points to consider (see below).

@@ -34,6 +34,16 @@ template <typename SCALAR> class DifferentiableFunc
// Calculate the function directly
virtual Real function(t_Vector const &image, t_Vector const &y, t_LinearTransform const &Phi) = 0;

// Get appropriate gradient step-size for FISTA algorithms
Real get_step_size()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider making this method const?

SOPT_MEDIUM_LOG("Lipschitz Constant for CRR = {}", L_CRR);
SOPT_MEDIUM_LOG("Step size for CRR = {}", this->step_size);
}
catch(std::exception e)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider passing the exception by const ref?

@mmcleod89 mmcleod89 merged commit 749d6b7 into development Nov 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants