Closed panickal-xmos closed 1 year ago
"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days."
"This issue is being closed because it has been marked as stale for 5 days with no further activity."
Hi @panickal-xmos - I just came across this issue and it sounds interesting. So you would be able to call this before AllocateTensors()? If you still have the patch please consider sharing it.
arena_used_bytes()
is currently provided by micro_interpreter. This can be called after AllocateTensors() has completed and gives the amount of bytes currently being used in the arena.However, this does not help to know the total amount of tensor arena needed for (doing temporary allocations, running the memory planner, etc.) a particular model.
An
arena_allocation_bytes()
provided by micro_interpreter would be very useful to know the exact amount of tensor arena memory to be allocated for running a particular model. The simple memory allocator would keep track of the maximum memory needed.I have a patch locally that implements this feature. Is this feature of interest?