| 260 | */ |
| 261 | template<class Float, OptimizerType optimizer_type> |
| 262 | __host__ __device__ decltype(&Optimizer::adam_update<Float>) get_update_function_2_moment() { |
| 263 | switch (optimizer_type) { |
| 264 | case kAdam: |
| 265 | return &Optimizer::adam_update<Float>; |
| 266 | default: |
| 267 | return nullptr; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /** Helper class for SGD */ |
| 272 | class SGD : public Optimizer { |
nothing calls this directly
no outgoing calls
no test coverage detected