File tree Expand file tree Collapse file tree 13 files changed +28
-29
lines changed
evaluator/model_manager/model
semantic_lstm_pedestrian_torch_cpu
semantic_lstm_pedestrian_torch_gpu
semantic_lstm_vehicle_torch_cpu
semantic_lstm_vehicle_torch_gpu Expand file tree Collapse file tree 13 files changed +28
-29
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,7 @@ apollo_cc_library(
3333 "@com_github_jbeder_yaml_cpp//:yaml-cpp" ,
3434 "@eigen" ,
3535 "@fftw3" ,
36- ] + if_cuda ([
37- "@libtorch_gpu_cuda" ,
38- ]) + if_rocm ([
39- "@libtorch_gpu_rocm" ,
40- ]),
36+ ] + ["@libtorch_gpu" ],
4137)
4238
4339apollo_component (
Original file line number Diff line number Diff line change @@ -117,19 +117,18 @@ apollo_cc_library(
117117 "@com_google_absl//:absl" ,
118118 "@com_google_protobuf//:protobuf" ,
119119 "@opencv//:imgcodecs" ,
120+ "@libtorch_gpu" ,
120121 ] + select ({
121122 "@platforms//cpu:x86_64" : ["@paddleinference-x86_64//:paddleinference_lib" ],
122123 "@platforms//cpu:aarch64" : ["@paddleinference-aarch64//:paddleinference_lib" ],
123124 }) + if_cuda ([
124- "@libtorch_gpu_cuda" ,
125125 "@local_config_cuda//cuda:cudart" ,
126126 "@local_config_cuda//cuda:cublas" ,
127127 "@local_config_cuda//cuda:cuda_headers" ,
128128 "@local_config_cuda//cuda:cudnn" ,
129129 "@local_config_cuda//cuda:cudnn_header" ,
130130 "@local_config_tensorrt//:tensorrt" ,
131131 ]) + if_rocm ([
132- "@libtorch_gpu_rocm" ,
133132 "@local_config_rocm//rocm:hip" ,
134133 "@local_config_rocm//rocm:hipblas" ,
135134 "@local_config_rocm//rocm:rocm_headers" ,
Original file line number Diff line number Diff line change @@ -189,18 +189,17 @@ apollo_cc_library(
189189 "@com_google_googletest//:gtest" ,
190190 "@eigen" ,
191191 "@local_config_pcl//:pcl" ,
192+ "@libtorch_gpu" ,
192193 ] + select ({
193194 "@platforms//cpu:x86_64" : ["@centerpoint_infer_op-x86_64//:centerpoint_infer_op" ],
194195 "@platforms//cpu:aarch64" : ["@centerpoint_infer_op-aarch64//:centerpoint_infer_op" ],
195196 }) + select ({
196197 "@platforms//cpu:x86_64" : ["@paddleinference-x86_64//:paddleinference_lib" ],
197198 "@platforms//cpu:aarch64" : ["@paddleinference-aarch64//:paddleinference_lib" ],
198199 }) + if_cuda ([
199- "@libtorch_gpu_cuda" ,
200200 "@local_config_cuda//cuda:cudart" ,
201201 "@local_config_tensorrt//:tensorrt" ,
202202 ]) + if_rocm ([
203- "@libtorch_gpu_rocm" ,
204203 "@local_config_rocm//rocm:hip" ,
205204 "@local_config_rocm//rocm:migraphx" ,
206205 ]),
Original file line number Diff line number Diff line change @@ -208,11 +208,8 @@ apollo_cc_library(
208208 "@local_config_cuda//cuda:cudart" ,
209209 "@local_config_pcl//:pcl" ,
210210 "@local_config_tensorrt//:tensorrt" ,
211- ] + if_cuda ([
212- "@libtorch_gpu_cuda" ,
213- ]) + if_rocm ([
214- "@libtorch_gpu_rocm" ,
215- ]),
211+ "@libtorch_gpu" ,
212+ ],
216213)
217214
218215apollo_component (
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ apollo_cc_library(
206206 "@opencv//:highgui" ,
207207 "@opencv//:imgcodecs" ,
208208 ] + if_gpu (
209- ["@libtorch_gpu_cuda " ],
209+ ["@libtorch_gpu " ],
210210 ["@libtorch_cpu" ],
211211 ),
212212)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ apollo_plugin(
2222 "//modules/prediction:apollo_prediction" ,
2323 "//modules/prediction/proto:prediction_conf_cc_proto" ,
2424 ] + if_gpu (
25- ["@libtorch_gpu_cuda " ],
25+ ["@libtorch_gpu " ],
2626 ["@libtorch_cpu" ],
2727 ),
2828)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ apollo_plugin(
2424 "//modules/prediction/proto:prediction_conf_cc_proto" ,
2525 ] + if_gpu (
2626 [
27- "@libtorch_gpu_cuda " ,
27+ "@libtorch_gpu " ,
2828 ],
2929 ["@libtorch_cpu" ],
3030 ),
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ apollo_plugin(
2222 "//modules/prediction:apollo_prediction" ,
2323 "//modules/prediction/proto:prediction_conf_cc_proto" ,
2424 ] + if_gpu (
25- ["@libtorch_gpu_cuda " ],
25+ ["@libtorch_gpu " ],
2626 ["@libtorch_cpu" ],
2727 ),
2828)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ apollo_plugin(
2222 "//modules/prediction:apollo_prediction" ,
2323 "//modules/prediction/proto:prediction_conf_cc_proto" ,
2424 ] + if_gpu (
25- ["@libtorch_gpu_cuda " ],
25+ ["@libtorch_gpu " ],
2626 ["@libtorch_cpu" ],
2727 ),
2828)
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ cc_library(
66 name = "libtorch" ,
77 deps = select ({
88 "//tools/platform:use_nvidia_gpu" : [
9- "@libtorch_gpu_cuda " ,
9+ "@libtorch_gpu " ,
1010 ],
1111 "//tools/platform:use_amd_gpu" : [
12- "@libtorch_gpu_rocm " ,
12+ "@libtorch_gpu " ,
1313 ],
1414 "//conditions:default" : [
1515 "@libtorch_cpu" ,
You can’t perform that action at this time.
0 commit comments