Skip to content

Commit 9503dbb

Browse files
authored
fix compile error (#11119)
1 parent 7eca286 commit 9503dbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/fluid/inference/tensorrt/convert/fc_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class FcOpConverter : public OpConverter {
5959
const framework::Scope& scope) override {
6060
VLOG(4) << "convert a fluid fc op to tensorrt fc layer without bias";
6161

62-
framework::OpDesc op_desc(op, nullptr, nullptr);
62+
framework::OpDesc op_desc(op, nullptr);
6363
PADDLE_ENFORCE_EQ(op_desc.Input("X").size(), 1);
6464
PADDLE_ENFORCE_EQ(op_desc.Input("Y").size(), 1); // Y is a weight
6565
PADDLE_ENFORCE_EQ(op_desc.Output("Out").size(), 1);

paddle/fluid/inference/tensorrt/convert/op_converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class OpConverter {
4040
void ConvertOp(const framework::proto::OpDesc& op,
4141
const std::unordered_set<std::string>& parameters,
4242
const framework::Scope& scope, TensorRTEngine* engine) {
43-
framework::OpDesc op_desc(op, nullptr, nullptr);
43+
framework::OpDesc op_desc(op, nullptr);
4444

4545
OpConverter* it{nullptr};
4646

0 commit comments

Comments
 (0)