From 96786d37167f0e252dfea01474a5d71a92968cff Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Thu, 10 Jan 2019 07:44:02 +0000 Subject: [PATCH] add compare_determine of seqpool1 test test=develop --- .../inference/tests/api/analyzer_seq_pool1_tester.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc b/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc index 1cf326fc89..d9de55ab76 100644 --- a/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc +++ b/paddle/fluid/inference/tests/api/analyzer_seq_pool1_tester.cc @@ -168,6 +168,17 @@ TEST(Analyzer_seq_pool1, compare) { reinterpret_cast(&cfg), input_slots_all); } +// Compare Deterministic result +TEST(Analyzer_seq_pool1, compare_determine) { + AnalysisConfig cfg; + SetConfig(&cfg); + + std::vector> input_slots_all; + SetInput(&input_slots_all); + CompareDeterministic(reinterpret_cast(&cfg), + input_slots_all); +} + void analysis_fuse_statis(bool use_zerocopy) { AnalysisConfig cfg; SetConfig(&cfg); -- GitLab