@@ -15,26 +15,13 @@ limitations under the License. */
1515#include < gtest/gtest.h>
1616#include < string>
1717#include < vector>
18- #include " ./paddle/utils/CommandLineParser.h"
19- #include " ModelConfig.pb.h"
20- #include " paddle/gserver/layers/DataLayer.h"
21- #include " paddle/gserver/layers/ExpandConvTransLayer.h"
22- #include " paddle/math/MathUtils.h"
23- #include " paddle/trainer/Trainer.h"
24- #include " paddle/utils/GlobalConstants.h"
2518
2619#include " LayerGradUtil.h"
2720#include " TestUtil.h"
2821
2922using namespace paddle ; // NOLINT
3023using namespace std ; // NOLINT
3124
32- P_DECLARE_bool (use_gpu);
33- P_DECLARE_int32 (gpu_id);
34- P_DECLARE_double (checkgrad_eps);
35- P_DECLARE_bool (thread_local_rand_use_global_seed);
36- P_DECLARE_bool (prev_batch_state);
37-
3825// Do one forward pass of priorBox layer and check to see if its output
3926// matches the given result
4027void doOnePriorBoxTest (size_t featureMapWidth,
@@ -164,7 +151,5 @@ TEST(Layer, priorBoxLayerFwd) {
164151int main (int argc, char ** argv) {
165152 testing::InitGoogleTest (&argc, argv);
166153 initMain (argc, argv);
167- FLAGS_thread_local_rand_use_global_seed = true ;
168- srand (1 );
169154 return RUN_ALL_TESTS ();
170155}
0 commit comments