File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ target_link_libraries(ed_clearer_plugin ${catkin_LIBRARIES})
137137add_executable (test_torch tools/test_torch.cpp)
138138target_link_libraries (test_torch ${TORCH_LIBRARIES} )
139139
140+ add_executable (test_yolo tools/test_yolo.cpp)
141+ target_link_libraries (test_yolo ${TORCH_LIBRARIES} )
142+
140143add_executable (ed_image_saver tools/image_saver.cpp)
141144target_link_libraries (ed_image_saver ${catkin_LIBRARIES} )
142145add_dependencies (ed_image_saver ${catkin_EXPORTED_TARGETS} )
@@ -185,6 +188,7 @@ install(
185188 ed_image_saver
186189 ed_segmenter
187190 test_torch
191+ test_yolo
188192 DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
189193)
190194
Original file line number Diff line number Diff line change 1+ #include < torch/torch.h>
2+ #include < iostream>
3+
4+ int main () {
5+ torch::Tensor tensor = torch::eye (3 );
6+ std::cout << tensor << std::endl;
7+ }
You can’t perform that action at this time.
0 commit comments