Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
remove attributs clear on TRT nodes for GetOptimizedSymbol (#13703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caenorst authored and KellenSunderland committed Jan 8, 2019
1 parent 5784363 commit 1f151fb
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 1f151fb

Please sign in to comment.