| 1083 | |
| 1084 | template <typename TypeParam> |
| 1085 | class 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 | |
| 1099 | TYPED_TEST_CASE(AdamSolverTest, TestDtypesAndDevices); |
| 1100 |
nothing calls this directly
no outgoing calls
no test coverage detected