Skip to content

Commit

Permalink
Update capture for lamda function -> void*
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Oct 13, 2023
1 parent b81fa78 commit f62ef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/framework/bfc_arena.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Status BFCArena::Extend(size_t rounded_bytes) {
" is smaller than requested bytes of ", rounded_bytes);
}

auto safe_alloc = [this](size_t alloc_bytes) {
auto safe_alloc = [this](size_t alloc_bytes) -> void* {
void* new_mem = nullptr;
ORT_TRY {
new_mem = device_allocator_->Alloc(alloc_bytes);
Expand Down

0 comments on commit f62ef98

Please sign in to comment.