Skip to content

Commit 31f0533

Browse files
committed
fix compile errors
1 parent 04ccbed commit 31f0533

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ReluOpConverter : public OpConverter {
2424
void operator()(const framework::proto::OpDesc& op) override {
2525
// Here the two nullptr looks strange, that's because the
2626
// framework::OpDesc's constructor is strange.
27-
framework::OpDesc op_desc(op, nullptr, nullptr);
27+
framework::OpDesc op_desc(op, nullptr);
2828
LOG(INFO) << "convert a fluid relu op to tensorrt activation layer whose "
2929
"type is Relu";
3030
const nvinfer1::ITensor* input_tensor =

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MulOpConverter : public OpConverter {
2727
void operator()(const framework::proto::OpDesc& op) override {
2828
VLOG(4) << "convert a fluid mul op to tensorrt fc layer without bias";
2929

30-
framework::OpDesc op_desc(op, nullptr, nullptr);
30+
framework::OpDesc op_desc(op, nullptr);
3131
// Declare inputs
3232
auto* input1 = engine_->GetITensor(op_desc.Input("X")[0]);
3333
auto* input2 = engine_->GetITensor(op_desc.Input("Y")[0]);

0 commit comments

Comments
 (0)