|
| 1 | +// Copyright 2021 Arm Limited and Contributors. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +#include "tvm_utility/pipeline.hpp" |
| 16 | + |
| 17 | +#ifndef PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT |
| 18 | +#define PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_ // NOLINT |
| 19 | + |
| 20 | +namespace model_zoo |
| 21 | +{ |
| 22 | +namespace perception |
| 23 | +{ |
| 24 | +namespace lidar_obstacle_detection |
| 25 | +{ |
| 26 | +namespace centerpoint_backbone |
| 27 | +{ |
| 28 | +namespace onnx_centerpoint_backbone |
| 29 | +{ |
| 30 | + |
| 31 | +static const tvm_utility::pipeline::InferenceEngineTVMConfig config{ |
| 32 | + {3, 0, 0}, // modelzoo_version |
| 33 | + |
| 34 | + "centerpoint_backbone", // network_name |
| 35 | + "llvm", // network_backend |
| 36 | + |
| 37 | + "./deploy_lib.so", // network_module_path |
| 38 | + "./deploy_graph.json", // network_graph_path |
| 39 | + "./deploy_param.params", // network_params_path |
| 40 | + |
| 41 | + kDLCPU, // tvm_device_type |
| 42 | + 0, // tvm_device_id |
| 43 | + |
| 44 | + {{"spatial_features", kDLFloat, 32, 1, {1, 32, 560, 560}}}, // network_inputs |
| 45 | + |
| 46 | + {{"heatmap", kDLFloat, 32, 1, {1, 3, 560, 560}}, |
| 47 | + {"reg", kDLFloat, 32, 1, {1, 2, 560, 560}}, |
| 48 | + {"height", kDLFloat, 32, 1, {1, 1, 560, 560}}, |
| 49 | + {"dim", kDLFloat, 32, 1, {1, 3, 560, 560}}, |
| 50 | + {"rot", kDLFloat, 32, 1, {1, 2, 560, 560}}, |
| 51 | + {"vel", kDLFloat, 32, 1, {1, 2, 560, 560}}} // network_outputs |
| 52 | +}; |
| 53 | + |
| 54 | +} // namespace onnx_centerpoint_backbone |
| 55 | +} // namespace centerpoint_backbone |
| 56 | +} // namespace lidar_obstacle_detection |
| 57 | +} // namespace perception |
| 58 | +} // namespace model_zoo |
| 59 | +// NOLINTNEXTLINE |
| 60 | +#endif // PERCEPTION__LIDAR_CENTERPOINT_TVM__DATA__MODELS__CENTERPOINT_BACKBONE__INFERENCE_ENGINE_TVM_CONFIG_HPP_ |
0 commit comments