MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / get_update_function_2_moment

Function get_update_function_2_moment

include/core/optimizer.h:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 */
261template<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 */
272class SGD : public Optimizer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected