What exactly do OrtArena, Ort::MemoryInfo::CreateCpu and Ort::Value::CreateTensor do? #4478
-
Hi, If I understand correctly, the Ort::Value is some wrapper for data. I'm currently creating it like this: `auto memory_info = Ort::MemoryInfo::CreateCpu(
So I was wondering, what exactly does it do with the data? I'm assuming that it's not copying the buffers, but I don't really get the MemoryInfo argument importance. From what I've understood, the MemoryInfo suggests where the data buffer resides, in my case on CPU. But what exactly do the OrtArenaAllocator do? Why does it need to allocate any data whatsoever? Does it actually copy the data from the buffer somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I think it would be better to ask this question in the onnxruntime repo. |
Beta Was this translation helpful? Give feedback.
Hi, I think it would be better to ask this question in the onnxruntime repo.