Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/relax/transform/run_codegen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class CodeGenRunner : ExprMutator {
if (opt_codegen) {
auto ext_symbol = GetExtSymbol(func);
size_t count = 0;
PostOrderVisit(func->body, [=, this, &count](Expr e) {
PostOrderVisit(func->body, [=, &count](Expr e) {
if (e->IsInstance<ConstantNode>()) {
// Make sure to pick a unique name
auto name = ext_symbol + "_" + opt_codegen.value() + "_const_" + std::to_string(count++);
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/extra/contrib/cudnn/cudnn_json_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class cuDNNJSONRuntime : public JSONRuntimeBase {
conv_dtype, false, &best_algo);

int algo = best_algo.cast<int>();
std::function<void()> op_exec = [=, this]() {
std::function<void()> op_exec = [=]() {
int device_id;
TVM_FFI_CHECK_CUDA_ERROR(cudaGetDevice(&device_id));
cudaStream_t stream = static_cast<cudaStream_t>(TVMFFIEnvGetStream(kDLCUDA, device_id));
Expand Down Expand Up @@ -223,7 +223,7 @@ class cuDNNJSONRuntime : public JSONRuntimeBase {
auto runner = tvm::contrib::CuDNNSDPARunner::Create();
runner->Init(batch, seq_len, num_heads, num_kv_heads, head_size, head_size_v, scale, dtype,
layout);
return [=, this]() {
return [=]() {
auto qkv = GetInput(node, 0);
auto workspace = const_cast<DLTensor*>(GetInput(node, 1));
auto out = const_cast<DLTensor*>(data_entry_[EntryID(outputs_[0])]);
Expand Down
2 changes: 1 addition & 1 deletion src/s_tir/transform/inject_software_pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ class PipelineRewriter : public StmtExprMutator {
}
}

auto wait_count = [=, this, &ana_normalized]() {
auto wait_count = [=, &ana_normalized]() {
auto sum = PrimExpr(0);
for (auto producer_head : producer_head_per_commit) {
if (producer_head && ana_normalized->CanProve(producer_head.value() >= 0)) {
Expand Down