![]() |
SOPT
Sparse OPTimisation
|
#include <onnx_differentiable_func.h>
Public Member Functions | |
ONNXDifferentiableFunc (const std::string &function_model_path, const std::string &gradient_model_path, const Real sigma, const Real mu, const Real lambda, const LinearTransform &Phi, const std::vector< int64_t > dimensions={}) | |
void | log_message () const override |
void | gradient (Vector &output, const Vector &image, const Vector &residual, const LinearTransform &Phi) override |
void | infer_dimensions (const size_t image_size) |
void | set_dimensions (const std::vector< int64_t > &dims) |
Real | function (Vector const &image, Vector const &y, LinearTransform const &Phi) override |
![]() | |
virtual t_Gradient | gradient () |
Real | get_step_size () const |
Additional Inherited Members | |
![]() | |
using | FB = sopt::algorithm::ForwardBackward< SCALAR > |
using | Real = typename FB::Real |
using | t_Vector = typename FB::t_Vector |
using | t_Gradient = typename FB::t_Gradient |
using | t_LinearTransform = typename FB::t_LinearTransform |
Definition at line 12 of file onnx_differentiable_func.h.
|
inline |
Definition at line 20 of file onnx_differentiable_func.h.
|
inlineoverridevirtual |
Implements DifferentiableFunc< SCALAR >.
Definition at line 82 of file onnx_differentiable_func.h.
References sopt::ORTsession::compute(), sopt::utilities::imageToFloat(), sopt::ONNXDifferentiableFunc< SCALAR >::infer_dimensions(), and sopt::sigma().
|
inlineoverridevirtual |
Implements DifferentiableFunc< SCALAR >.
Definition at line 55 of file onnx_differentiable_func.h.
References sopt::ORTsession::compute(), sopt::utilities::imageToFloat(), sopt::ONNXDifferentiableFunc< SCALAR >::infer_dimensions(), and sopt::sigma().
|
inline |
Definition at line 67 of file onnx_differentiable_func.h.
References sopt::ONNXDifferentiableFunc< SCALAR >::set_dimensions().
Referenced by sopt::ONNXDifferentiableFunc< SCALAR >::function(), and sopt::ONNXDifferentiableFunc< SCALAR >::gradient().
|
inlineoverridevirtual |
Implements DifferentiableFunc< SCALAR >.
Definition at line 50 of file onnx_differentiable_func.h.
References SOPT_HIGH_LOG.
|
inline |
Definition at line 77 of file onnx_differentiable_func.h.
Referenced by sopt::ONNXDifferentiableFunc< SCALAR >::infer_dimensions().