lite.ai.toolkit icon indicating copy to clipboard operation
lite.ai.toolkit copied to clipboard

请教一个关于c++的问题

Open TitansWhale opened this issue 3 years ago • 1 comments

感谢作者分享,看了作者源码学到很多东西。 在ort_handler.cpp 代码的104行中 image onnx_path 指向了一个临时内存,在离开构造函数之后。_w_onnx_path会被释放掉。会导致onnx_path失效。(作为c++初学者,我想知道我的理解是否有错?)

TitansWhale avatar Dec 23 '22 15:12 TitansWhale

这个不影响的,路径也之后在这个构造函数的作用作用域用到,initialize_handler()在这个构造函数的作用域内。

DefTruth avatar Dec 28 '22 02:12 DefTruth

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Mar 31 '24 00:03 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Apr 07 '24 00:04 github-actions[bot]