Is there a way to get the address of activation tensors? #17733
Answered
by
hariharans29
andylee-24
asked this question in
Other Q&A
-
Hello, I'm trying to do memory simulation with ONNX. Is there a way to get the beginning address and size of activations (intermediate input / output buffers) of the given ONNX model Thanks in advance, TaeHan Lee. |
Beta Was this translation helpful? Give feedback.
Answered by
hariharans29
Sep 29, 2023
Replies: 1 comment 1 reply
-
ORT doesn't have public APIs to query these. If you would like to study more - here is a good place to start - . It has logic to deteermine if ORT can re-use a buffer/ has to allocate new buffer for activations. Please keep in mind that these are internal implementation details of ORT and they are bound to change. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andylee-24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ORT doesn't have public APIs to query these.
If you would like to study more - here is a good place to start -
onnxruntime/onnxruntime/core/framework/allocation_planner.cc
Line 135 in 14d349e