-
Notifications
You must be signed in to change notification settings - Fork 675
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
refactor(lidar_apollo_segmentation_tvm/_nodes): remove autoware_auto_common dependency #3136
Conversation
d8d1e03
to
1f601f7
Compare
@ambroise-arm this way it compiles on my machine. Also used Could you review it please? |
I just want to double check if the |
@ambroise-arm I've checked, Which makes all the packages in the universe:
I didn't check if they work in runtime though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to me. I ran colcon test on the packages and it passes, so the inference doesn't fail catastrophically.
Just nitpicking, can you change char
to int8_t
in common/tvm_utility/include/tvm_utility/pipeline.hpp lines 204 (modelzoo_version) and 348 (version_up_to) as well please? For consistency.
1f601f7
to
d31b865
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #3136 +/- ##
=======================================
Coverage 13.25% 13.25%
=======================================
Files 1384 1384
Lines 97018 97017 -1
Branches 28213 28213
=======================================
Hits 12855 12855
+ Misses 70354 70353 -1
Partials 13809 13809
*This pull request uses carry forward flags. Click here to find out more. see 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@ambroise-arm I've squashed+rebased the PR and applied the suggestions in cb1d451 Could you review again? (I've compiled it just to make sure) |
…common dependency Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> fix Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> replace char and char8_t with int8_t and fix a missed float Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
cb1d451
to
21b629b
Compare
Thank you for reviewing! |
…common dependency (autowarefoundation#3136) Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai> Signed-off-by: Mingyu Li <mingyu.li@tier4.jp>
Description
Continuation of: #2234
Related to: #2229
Moved here to collaborate easier on AWF organization branch.
In order to build these packages, you need to pass
--cmake-args -DDOWNLOAD_ARTIFACTS=1
to them.I use
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DDOWNLOAD_ARTIFACTS=1 --packages-select lidar_apollo_segmentation_tvm lidar_apollo_segmentation_tvm_nodes tvm_utility
for convenience.Summary
🤖 Generated by Copilot at 1f601f7
This pull request refactors the code and types of the lidar_apollo_segmentation_tvm package and its node, to use standard types instead of custom ones for the inference input and output data. This simplifies the code, improves the performance, and avoids unnecessary conversions and dependencies. It affects the files
pipeline.hpp
,lidar_apollo_segmentation_tvm_node.cpp
, and all the files in thelidar_apollo_segmentation_tvm
module and its test. It also updates thepackage.xml
files to remove unused dependencies.Walkthrough
🤖 Generated by Copilot at 1f601f7
bool8_t
,char8_t
,float32_t
andfloat64_t
types with standard typesbool
,int8_t
,float
anddouble
in all files (F0-F13)autoware_auto_msgs
andautoware_auto_common
packages, which defined the replaced types (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)<cstdint>
to include the definition ofint8_t
type, which is used for the model version (link, link, link)version_from
parameter in thetvm_utility::Pipeline
constructor fromstd::array<char, 3>
tostd::array<int8_t, 3>
, to match the type of themodelzoo_version
field in theconfig_
object (link)pc_ptr
,pos_x
,pos_y
,affine_matrix
,offset
,point_step
, etc., fromfloat32_t
tofloat
, to avoid unnecessary conversions and use a standard type (link, link, link, link, link)epsilon
variable in theFeatureGenerator::generate
function fromfloat64_t
todouble
, to avoid unnecessary conversions and use a standard type (link)node_rank
,traversed
,is_center
andis_object
, fromchar8_t
andbool8_t
toint8_t
andbool
, to use standard types and avoid unnecessary conversions (link)v
vector in themain
test function fromuchar8_t
tounsigned char
, to use a standard type (link)Poem
🤖 Generated by Copilot at 1f601f7
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.