From e51103b0887f98a06894f32ca18ca017dea09f1f Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Fri, 3 May 2024 10:02:11 -0700 Subject: [PATCH] fix the temp allocator for backend (#3490) Summary: Seems like forget to pass temp allocator to `BackendExecutionContext`... Reviewed By: tarun292 Differential Revision: D56893727 --- runtime/executor/method.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/executor/method.cpp b/runtime/executor/method.cpp index 378adf1528..1184eb0d3c 100644 --- a/runtime/executor/method.cpp +++ b/runtime/executor/method.cpp @@ -1063,7 +1063,9 @@ Error Method::execute_instruction() { delegate_idx, n_delegate_, step_state_.instr_idx); - BackendExecutionContext backend_execution_context(event_tracer_); + BackendExecutionContext backend_execution_context( + /*event_tracer*/ event_tracer_, + /*temp_allocator*/ memory_manager_->temp_allocator()); err = delegates_[delegate_idx].Execute( backend_execution_context, chain.argument_lists_[step_state_.instr_idx].data());