Skip to content

Commit

Permalink
remove attributs clear on TRT nodes for GetOptimizedSymbol (apache#13703
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Caenorst authored and haohuw committed Jun 23, 2019
1 parent 0af5f78 commit cfe4ff9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/executor/trt_graph_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,7 @@ nnvm::Symbol TrtGraphExecutor::GetOptimizedSymbol() {
Symbol ret;
ret.outputs = std::vector<nnvm::NodeEntry>(graph_.outputs.begin(),
graph_.outputs.begin() + num_forward_outputs_);
ret = ret.Copy();
static const Op* trt_op = Op::Get("_trt_op");
DFSVisit(ret.outputs, [](const nnvm::NodePtr n) {
if (n->op() == trt_op) {
n->attrs.dict.clear();
}
});
return ret;
return ret.Copy();
}

Executor *TrtGraphExecutor::TensorRTBind(nnvm::Symbol symbol,
Expand Down

0 comments on commit cfe4ff9

Please sign in to comment.