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

Function get_update_function

include/core/optimizer.h:226–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 */
225template<class Float, OptimizerType optimizer_type>
226__host__ __device__ decltype(&Optimizer::sgd_update<Float>) get_update_function() {
227 switch (optimizer_type) {
228 case kSGD:
229 return &Optimizer::sgd_update<Float>;
230 default:
231 return nullptr;
232 }
233}
234
235/**
236 * @brief Compile-time binding of 1-moment optimizers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected