| 12 | using opt_var = DeviceDnTen<datatype>; |
| 13 | |
| 14 | class opt_option { |
| 15 | public: |
| 16 | enum Method { |
| 17 | GradientDescent = 1, |
| 18 | NewtonMethod = 2 |
| 19 | }; |
| 20 | |
| 21 | opt_option(){}; |
| 22 | Method method = GradientDescent; |
| 23 | |
| 24 | // gradient decent |
| 25 | double lr_gd = 0.1; |
| 26 | size_l max_iteration_gd = 100; |
| 27 | }; |
| 28 | |
| 29 | class Optimizer { |
| 30 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected