Skip to content

Commit 38723e7

Browse files
author
gaoyuan
committed
remove random flag
1 parent cad325f commit 38723e7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

paddle/gserver/tests/test_PriorBox.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2922
using namespace paddle; // NOLINT
3023
using 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
4027
void doOnePriorBoxTest(size_t featureMapWidth,
@@ -164,7 +151,5 @@ TEST(Layer, priorBoxLayerFwd) {
164151
int 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

Comments
 (0)