Skip to content

Commit

Permalink
compute_info.create_state_func = [=](ComputeContext* context, Functio…
Browse files Browse the repository at this point in the history
…nState* state)
  • Loading branch information
jchen351 committed Jul 22, 2024
1 parent c5a3e64 commit 6c105be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3315,7 +3315,7 @@ Status TensorrtExecutionProvider::CreateNodeComputeInfoFromGraph(const GraphView
// Create function state
// TODO: remove default capture
NodeComputeInfo compute_info;
compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
compute_info.create_state_func = [=, this](ComputeContext* context, FunctionState* state) {
std::unique_ptr<TensorrtFuncState> p = std::make_unique<TensorrtFuncState>();
// translate tactic sources string to nvinfer1::TacticSources
nvinfer1::TacticSources tactics = 0;
Expand Down Expand Up @@ -3979,7 +3979,7 @@ Status TensorrtExecutionProvider::CreateNodeComputeInfoFromPrecompiledEngine(con
// Create function state
// TODO: remove default capture
NodeComputeInfo compute_info;
compute_info.create_state_func = [=](ComputeContext* context, FunctionState* state) {
compute_info.create_state_func = [=, this](ComputeContext* context, FunctionState* state) {
std::unique_ptr<TensorrtShortFuncState> p = std::make_unique<TensorrtShortFuncState>();
*p = {context->allocate_func,
context->release_func,
Expand Down

0 comments on commit 6c105be

Please sign in to comment.