You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use cxxopts in my main.cpp and load torchscript by torch::jit::load, the bug sometime appears. The program memory is still increasing quickly and finally the program was killed by the operater system, and then there are some infomation like:
Process finished with exit code 9
Then I didn't use cxxopts and use gflags, The bug disappears.
So I think there are some conflicts between libtorch and cxxopts
🐛 Bug
When I run the code from https://github.com/yasenh/libtorch-yolov5.git. the program memory is still increasing. After debugging, I find the key is that cxxopts conflict with libtorch.
When I use
cxxopts
in my main.cpp and loadtorchscript
bytorch::jit::load
, the bug sometime appears. The program memory is still increasing quickly and finally the program was killed by the operater system, and then there are some infomation like:Process finished with exit code 9
Then I didn't use
cxxopts
and usegflags
, The bug disappears.So I think there are some conflicts between
libtorch
andcxxopts
Originally posted by @liubamboo in yasenh/libtorch-yolov5#28 (comment)
Pitch
Let's replace to a better arguments parser method.
The text was updated successfully, but these errors were encountered: