Skip to content

Commit

Permalink
refactor(tvm_utility) prefix package and namespace with autoware
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <esteve.fernandez@tier4.jp>
  • Loading branch information
esteve committed Nov 5, 2024
1 parent f0f5736 commit 92f255b
Show file tree
Hide file tree
Showing 24 changed files with 15 additions and 15 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

cmake_minimum_required(VERSION 3.14)
project(tvm_utility)
project(autoware_tvm_utility)

include("${PROJECT_NAME}-extras.cmake")

Expand Down Expand Up @@ -72,7 +72,7 @@ if(BUILD_TESTING)

target_include_directories("${TEST_CASE_NAME}" SYSTEM PUBLIC
"${OpenCV_INCLUDE_DIRS}"
"${tvm_utility_FOUND_INCLUDE_DIRS}"
"${autoware_tvm_utility_FOUND_INCLUDE_DIRS}"
"data/models/${TEST_CASE_NAME}_${CMAKE_SYSTEM_PROCESSOR}"
"include"
)
Expand Down Expand Up @@ -130,7 +130,7 @@ if(BUILD_EXAMPLE)

target_include_directories("${EXAMPLE_NAME}" SYSTEM PUBLIC
"${OpenCV_INCLUDE_DIRS}"
"${tvm_utility_FOUND_INCLUDE_DIRS}"
"${autoware_tvm_utility_FOUND_INCLUDE_DIRS}"
"data/models"
"include"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"
#include "autoware/tvm_utility/pipeline.hpp"

#ifndef COMMON__TVM_UTILITY__DATA__MODELS__ABS_MODEL_AARCH64__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define COMMON__TVM_UTILITY__DATA__MODELS__ABS_MODEL_AARCH64__INFERENCE_ENGINE_TVM_CONFIG_HPP_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"
#include "autoware/tvm_utility/pipeline.hpp"

#ifndef COMMON__TVM_UTILITY__DATA__MODELS__ABS_MODEL_X86_64__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define COMMON__TVM_UTILITY__DATA__MODELS__ABS_MODEL_X86_64__INFERENCE_ENGINE_TVM_CONFIG_HPP_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"
#include "autoware/tvm_utility/pipeline.hpp"

#ifndef COMMON__TVM_UTILITY__DATA__MODELS__YOLO_V2_TINY__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT
#define COMMON__TVM_UTILITY__DATA__MODELS__YOLO_V2_TINY__INFERENCE_ENGINE_TVM_CONFIG_HPP_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tvm_utility/pipeline.hpp"
#include "autoware/tvm_utility/pipeline.hpp"
#include "yolo_v2_tiny/inference_engine_tvm_config.hpp"

#include <opencv2/opencv.hpp>
Expand All @@ -27,7 +27,7 @@

using model_zoo::perception::camera_obstacle_detection::yolo_v2_tiny::tensorflow_fp32_coco::config;

namespace tvm_utility
namespace autoware::tvm_utility
{
namespace yolo_v2_tiny
{
Expand Down Expand Up @@ -233,7 +233,7 @@ class PostProcessorYoloV2Tiny : public tvm_utility::pipeline::PostProcessor<std:
};

} // namespace yolo_v2_tiny
} // namespace tvm_utility
} // namespace autoware::tvm_utility

bool check_near(double expected, double actual, double tolerance)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <utility>
#include <vector>

namespace tvm_utility
namespace autoware::tvm_utility
{

/**
Expand Down Expand Up @@ -410,5 +410,5 @@ class TowStagePipeline
};

} // namespace pipeline
} // namespace tvm_utility
} // namespace autoware::tvm_utility
#endif // TVM_UTILITY__PIPELINE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!DOCTYPE xml>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>tvm_utility</name>
<name>autoware_tvm_utility</name>
<version>1.0.0</version>
<description>
A set of utility functions to help build a machine learning pipeline using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include "gtest/gtest.h"
#include "tvm_utility/pipeline.hpp"
#include "autoware/tvm_utility/pipeline.hpp"
// file for current arch x86 or arm is chosen in cmake file
#include <inference_engine_tvm_config.hpp>
#include <opencv2/opencv.hpp>
Expand All @@ -26,7 +26,7 @@

using model_zoo::inf_test::engine_load::abs_model::config;

namespace tvm_utility
namespace autoware::tvm_utility
{
namespace abs_model
{
Expand Down Expand Up @@ -143,4 +143,4 @@ TEST(PipelineExamples, SimplePipeline)
}

} // namespace abs_model
} // namespace tvm_utility
} // namespace autoware::tvm_utility

0 comments on commit 92f255b

Please sign in to comment.