Apollo 11.0
自动驾驶开放平台
mi_common.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2022 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16
17#pragma once
18
19#include <map>
20#include <string>
21#include <vector>
22
23#include "modules/perception/common/proto/rt.pb.h"
24
25#include "cyber/common/log.h"
27
28namespace apollo {
29namespace perception {
30namespace inference {
31
32typedef std::vector<int> TensorDims;
33typedef std::map<std::string, TensorDims> TensorDimsMap;
34
35void ParseNetParam(const NetParameter &net_param,
36 TensorDimsMap *tensor_dims_map,
37 std::map<std::string, std::string> *tensor_modify_map,
38 std::vector<LayerParameter> *order);
39
40bool modify_pool_param(PoolingParameter *pool_param);
41
52
53bool ParserConvParam(const ConvolutionParameter &conv, ConvParam *param);
54
55} // namespace inference
56} // namespace perception
57} // namespace apollo
bool ParserConvParam(const ConvolutionParameter &conv, ConvParam *param)
Definition mi_common.cc:51
void ParseNetParam(const NetParameter &net_param, TensorDimsMap *tensor_dims_map, std::map< std::string, std::string > *tensor_modify_map, std::vector< LayerParameter > *order)
Definition mi_common.cc:27
std::vector< int > TensorDims
Definition mi_common.h:32
std::map< std::string, TensorDims > TensorDimsMap
Definition mi_common.h:33
bool modify_pool_param(PoolingParameter *pool_param)
Definition mi_common.cc:101
class register implement
Definition arena_queue.h:37