Skip to content

Commit b742d46

Browse files
committed
fix demo ci bug on trt
1 parent e878a8e commit b742d46

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

paddle/fluid/inference/api/analysis_predictor.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,4 +551,6 @@ USE_TRT_CONVERTER(pad);
551551
USE_TRT_CONVERTER(split);
552552
USE_TRT_CONVERTER(prelu);
553553
USE_TRT_CONVERTER(conv2d_transpose);
554+
555+
USE_PASS(tensorrt_subgraph_pass);
554556
#endif

paddle/fluid/inference/api/paddle_pass_builder.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,12 @@ class CpuPassStrategy : public PassStrategy {
116116
class GpuPassStrategy : public PassStrategy {
117117
public:
118118
GpuPassStrategy() : PassStrategy({}) {
119+
// TODO(NHZlX) Problem with Data synchronization between GPU and CPU
120+
// When running in GPU mode, the parameters are all on GPU. But the
121+
// opearations of "conv_bn_fuse_pass" are on CPU.
119122
passes_.assign({
120-
"infer_clean_graph_pass", "conv_bn_fuse_pass",
123+
"infer_clean_graph_pass",
124+
// "infer_clean_graph_pass", "conv_bn_fuse_pass",
121125
});
122126
}
123127

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nv_library(tensorrt_plugin SRCS trt_plugin.cc split_op_plugin.cu prelu_op_plugin.cu DEPS enforce)
1+
nv_library(tensorrt_plugin SRCS trt_plugin.cc split_op_plugin.cu prelu_op_plugin.cu DEPS enforce device_context)

paddle/fluid/inference/tests/api/trt_models_tester.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,3 @@ TEST(TensorRT_mobilenet, analysis) {
145145

146146
} // namespace inference
147147
} // namespace paddle
148-
149-
USE_PASS(tensorrt_subgraph_pass);

0 commit comments

Comments
 (0)