MCPcopy Create free account
hub / github.com/apache/singa / CreateConstraint

Function CreateConstraint

include/singa/model/optimizer.h:137–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135};
136
137inline std::shared_ptr<Constraint> CreateConstraint(std::string type) {
138 return std::make_shared<Constraint>();
139}
140/// Apply regularization for parameters (gradient), e.g., L1 norm and L2 norm.
141/// TODO(wangwei) implement a sub-class for each type of regularizer
142class Regularizer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected