Open FlyingAnt2018 opened 1 year ago
Are you sure it is caused by torch::jit::load, the prediction module also uses torch::jit::load, I think this may be normal.
Are you sure it is caused by torch::jit::load, the prediction module also uses torch::jit::load, I think this may be normal.
My apollo repo has been changed to use Cmake to build full system. And the change is equivalent, all models are loaded failed.May be the bug is imported by the cmake setting.
We can't give too much advice on this issue, I think you can start with the error message, apollo currently has no plans to support cmake
Thanks for your kindness, I am trying to align with bazel, to locate error.
@.*** | |
---|---|
@.*** |
---- Replied Message ---- | From | @.> | | Date | 04/20/2023 19:39 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [ApolloAuto/apollo] libtorch model load failed (Issue #14894) |
We can't give too much advice on this issue, I think you can start with the error message, apollo currently has no plans to support cmake
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
We can't give too much advice on this issue, I think you can start with the error message, apollo currently has no plans to support cmake
Hi, bro. I wander if there is any special trick when get jit verson torch model. I successfuly run official apollo code, when i debugged at prediction module i found that all exist models loaded successful, but the instance "torch_vehiclemodel" here looks like picture below. But, my jit model c++ instance [Refer to the official implementation here ] looks like picture below.
In two pictures, apollo official version model instance's Member variables "torch_vehiclemodel.ivalue.target.slots" is a list type. But, my resnet jit model instance in picture 2's element variables "slots_"looks like a std::_vector_base
System information
Steps to reproduce the issue:
Supporting materials (screenshots, command lines, code/script snippets):
snippets1. code to export jit model
snippets2. code to run c++ example
snippets 3.CMakeList.txt
When i copy snippets2 to apollo prediction module, error occured at model load stage, and report data format is not supported. But a have used same libtorch library and jit model both in apollo env and snippets2. I guess this may caused by apollo setting which affect libtorch runtime env. I need your help, please. Details, debug image is here[https://discuss.pytorch.org/uploads/default/original/3X/c/b/cb7278cd55cf4c584d1d6c94ab6172864a36900c.jpeg] left of image below show runtime debug mode var state, and right half of the image shows running demo about snippet 2, whoes var module is instanced successfuly.