MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / GetRequestedAction

Function GetRequestedAction

rtpose_wrapper/tools/caffe.cpp:165–177  ·  view source on GitHub ↗

Translate the signal effect the user specified on the command-line to the corresponding enumeration.

Source from the content-addressed store, hash-verified

163// Translate the signal effect the user specified on the command-line to the
164// corresponding enumeration.
165caffe::SolverAction::Enum GetRequestedAction(
166 const std::string& flag_value) {
167 if (flag_value == "stop") {
168 return caffe::SolverAction::STOP;
169 }
170 if (flag_value == "snapshot") {
171 return caffe::SolverAction::SNAPSHOT;
172 }
173 if (flag_value == "none") {
174 return caffe::SolverAction::NONE;
175 }
176 LOG(FATAL) << "Invalid signal effect \""<< flag_value << "\" was specified";
177}
178
179// Train / Finetune a model.
180int train() {

Callers 3

trainFunction · 0.85
StepMethod · 0.85
TestMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestMethod · 0.68