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

Class AdamSolverTest

src/caffe/test/test_gradient_based_solver.cpp:1085–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083
1084template <typename TypeParam>
1085class AdamSolverTest : public GradientBasedSolverTest<TypeParam> {
1086 typedef typename TypeParam::Dtype Dtype;
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);
1100

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected