Skip to content

Commit

Permalink
fix (#11590)
Browse files Browse the repository at this point in the history
  • Loading branch information
gongweibao authored Jun 20, 2018
1 parent e43614d commit 19958ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions paddle/fluid/inference/analysis/tensorrt_subgraph_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void TensorRTSubGraphPass::Run(DataFlowGraph *graph) {
SubGraphFuse(graph, node_inside_subgraph_teller_);
}

} // analysis
} // inference
} // namespace analysis
} // namespace inference

} // paddle
} // namespace paddle
5 changes: 4 additions & 1 deletion paddle/fluid/operators/tensorrt_engine_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@

#ifdef PADDLE_WITH_CUDA

#include "paddle/fluid/operators/tensorrt_engine_op.h"
#include <string>
#include <vector>

#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/inference/tensorrt/convert/op_converter.h"
#include "paddle/fluid/inference/tensorrt/engine.h"
#include "paddle/fluid/inference/utils/singleton.h"
#include "paddle/fluid/operators/tensorrt_engine_op.h"

namespace paddle {
namespace operators {
Expand Down
4 changes: 3 additions & 1 deletion paddle/fluid/operators/tensorrt_engine_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@

#ifdef PADDLE_WITH_CUDA

#include <string>
#include <vector>

#include "paddle/fluid/framework/operator.h"
#include "paddle/fluid/inference/analysis/helper.h"
#include "paddle/fluid/inference/tensorrt/engine.h"
#include "paddle/fluid/inference/tensorrt/engine.h"

namespace paddle {
namespace operators {
Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/operators/tensorrt_engine_op_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ void Execute(int batch_size, int input_dim, int output_dim, int nlayers = 1) {
const std::string& z_name, bool x_created,
const shape_t& x_shape, const shape_t& y_shape,
const shape_t& z_shape) {

LOG(INFO) << "create fc op";
auto* fc = block_desc.AppendOp();
fc->SetType("mul");
Expand Down

0 comments on commit 19958ee

Please sign in to comment.