Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ortbackend内存管理的问题咨询 #2414

Closed
ChaoII opened this issue Mar 27, 2024 · 3 comments
Closed

ortbackend内存管理的问题咨询 #2414

ChaoII opened this issue Mar 27, 2024 · 3 comments
Assignees

Comments

@ChaoII
Copy link
Collaborator

ChaoII commented Mar 27, 2024

请问一下:https://github.com/PaddlePaddle/FastDeploy/blob/cc8d1f3c9f31ea4919972f14ee3eaaa9a09966e2/fastdeploy/runtime/backends/ort/ort_backend.cc#L203C22-L203C38
这里的std::vector<char*> disable_fp16_ops;是怎么管理内存的
还有


char* model_content_ptr的内存是由ort 的session管理的吗?

@heliqi
Copy link
Collaborator

heliqi commented Mar 28, 2024

disable_fp16_ops 里的内存看着有点泄漏,实际应该要在paddle2onnx使用完之后手动释放下。 你帮忙提个pr修复下?

@heliqi
Copy link
Collaborator

heliqi commented Mar 28, 2024

model_content_ptr 是有手动管理并释放的

@heliqi
Copy link
Collaborator

heliqi commented Apr 1, 2024

已提PR修复

@heliqi heliqi closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants