MCPcopy Create free account
hub / github.com/BVLC/caffe / InitSolver

Method InitSolver

src/caffe/test/test_gradient_based_solver.cpp:1089–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087
1088 protected:
1089 virtual void InitSolver(const SolverParameter& param) {
1090 SolverParameter new_param = param;
1091 const Dtype momentum = 0.9;
1092 new_param.set_momentum(momentum);
1093 const Dtype momentum2 = 0.999;
1094 new_param.set_momentum2(momentum2);
1095 this->solver_.reset(new AdamSolver<Dtype>(new_param));
1096 }
1097};
1098
1099TYPED_TEST_CASE(AdamSolverTest, TestDtypesAndDevices);

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected