• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2021-2022 Huawei Technologies Co., Ltd
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 #ifndef MINDSPORE_LITE_TOOLS_CONVERTER_ADAPTER_DPICO_COMMON_OP_ATTR_H_
18 #define MINDSPORE_LITE_TOOLS_CONVERTER_ADAPTER_DPICO_COMMON_OP_ATTR_H_
19 
20 namespace mindspore {
21 namespace dpico {
22 constexpr auto kAcrossSpatial = "across_spatial";
23 constexpr auto kAcrossChannels = "across_channels";
24 constexpr auto kActivateAlpha = "activate_alpha";
25 constexpr auto kActivateBeta = "activate_beta";
26 constexpr auto kActivateType = "activate_type";
27 constexpr auto kAfClip = "af_clip";
28 constexpr auto kBiasTerm = "bias_term";
29 constexpr auto kBilinear = "bilinear";
30 constexpr auto kBlockHeight = "block_height";
31 constexpr auto kBlockWidth = "block_width";
32 constexpr auto kChannelShared = "channel_shared";
33 constexpr auto kClip = "clip";
34 constexpr auto kCoeffs = "coeffs";
35 constexpr auto kCustomName = "custom_";
36 constexpr auto kCustomParamSize = "custom_param_size";
37 constexpr auto kDetectionBackgroundLabelId = "detection_background_label_id";
38 constexpr auto kDetectionBiasVec = "detection_bias_vec";
39 constexpr auto kDetectionCalcMode = "detection_calc_mode";
40 constexpr auto kDetectionClipBbox = "detection_clip_bbox";
41 constexpr auto kDetectionCodeType = "detection_code_type";
42 constexpr auto kDetectionMultiClassSorting = "detection_multi_class_sorting";
43 constexpr auto kDetectionOutputParam = "detection_output_param";
44 constexpr auto kDetectionOutputParamSize = "detection_output_param_size";
45 constexpr auto kDetectionProposalParamType = "detection_proposal_param_type";
46 constexpr auto kDetectionReportFlag = "detection_report_flag";
47 constexpr auto kDetectionShareLocation = "detection_share_location";
48 constexpr auto kDetectionShareVariance = "detection_share_variance";
49 constexpr auto kDetectionTop = "detection_top";
50 constexpr auto kDetectionTopK = "detection_top_k";
51 constexpr auto kDetectionVarianceVec = "detection_variance_vec";
52 constexpr auto kDecBBoxParam = "decbbox_param";
53 constexpr auto kDim1 = "dim_1";
54 constexpr auto kDim2 = "dim_2";
55 constexpr auto kDim3 = "dim_3";
56 constexpr auto kDirection = "direction";
57 constexpr auto kEndAxis = "end_axis";
58 constexpr auto kExposeHidden = "expose_hidden";
59 constexpr auto kExtendedOpType = "extended_op_type";
60 constexpr auto kFmod = "fmod";
61 constexpr auto kGraphName = "graph_name";
62 constexpr auto kGroupSize = "group_size";
63 constexpr auto kGruWeightOrderZrhFlag = "gru_weight_order_zrh_flag";
64 constexpr auto kHasOutputGateFlag = "has_output_gate_flag";
65 constexpr auto kHasSplitBiasFlag = "has_split_bias_flag";
66 constexpr auto kHasSplitHWeightFlag = "has_split_h_weight_flag";
67 constexpr auto kHiddenSize = "hidden_size";
68 constexpr auto kInferDone = "infer_done";
69 constexpr auto kInitialCOnlineFlag = "initial_c_online_flag";
70 constexpr auto kInitialHOnlineFlag = "initial_h_online_flag";
71 constexpr auto kInputsShape = "inputs_shape";
72 constexpr auto kInterpolationMode = "interpolation_mode";
73 constexpr auto kIsMainGraph = "is_main_graph";
74 constexpr auto kIsMapperSupported = "is_mapper_supported";
75 constexpr auto kKeepDirectionDimFlag = "keep_direction_dim_flag";
76 constexpr auto kKernelShape = "kernel_shape";
77 constexpr auto kLrnK = "lrn_k";
78 constexpr auto kLstmWeightOrderIofcFlag = "lstm_weight_order_iofc_flag";
79 constexpr auto kMultiples = "multiples";
80 constexpr auto kNearest = "nearest";
81 constexpr auto kNegativeSlope = "negative_slope";
82 constexpr auto kNetType = "net_type";
83 constexpr auto kNormalizeVariance = "normalize_variance";
84 constexpr auto kNumAnchors = "num_anchors";
85 constexpr auto kNumAxes = "num_axes";
86 constexpr auto kNumBboxesPerGrid = "num_bboxes_per_grid";
87 constexpr auto kNumClasses = "num_classes";
88 constexpr auto kNumCoords = "num_coords";
89 constexpr auto kNumGridsWidth = "num_grid_width";
90 constexpr auto kNumGridsHeight = "num_grid_height";
91 constexpr auto kNumOutput = "num_output";
92 constexpr auto kOnnxModeOutFlag = "onnx_model_out_flag";
93 constexpr auto kOperatorType = "operator_type";
94 constexpr auto kOutputChannel = "output_channel";
95 constexpr auto kOutputDim = "output_dim";
96 constexpr auto kOutputHeight = "output_height";
97 constexpr auto kOutputWidth = "output_width";
98 constexpr auto kOutputsNames = "outputs_names";
99 constexpr auto kOutputsShape = "outputs_shape";
100 constexpr auto kOutputsFormat = "outputs_format";
101 constexpr auto kLastDimStride = "internal_stride";
102 constexpr auto kOutputLastFrameFlag = "output_last_frame_flag";
103 constexpr auto kPadBeg = "pad_beg";
104 constexpr auto kPadEnd = "pad_end";
105 constexpr auto kPads = "pads";
106 constexpr auto kPeepHoleFlag = "peep_hole_flag";
107 constexpr auto kPerm = "perm";
108 constexpr auto kPoolMethod = "pool_method";
109 constexpr auto kPyramidHeight = "pyramid_height";
110 constexpr auto kRecurrentDirection = "recurrent_direction";
111 constexpr auto kSamplingRatio = "sampling_ratio";
112 constexpr auto kSelectLastIndex = "select_last_index";
113 constexpr auto kSequenceLensOnlineFlag = "sequence_lens_online_flag";
114 constexpr auto kShrinkFactor = "shrink_factor";
115 constexpr auto kSlicePointBegin = "slice_point_begin";
116 constexpr auto kSlicePointEnd = "slice_point_end";
117 constexpr auto kSpatialScale = "spatial_scale";
118 constexpr auto kSqrtA = "sqrt_a";
119 constexpr auto kStartAxis = "start_axis";
120 constexpr auto kThreshold = "threshold";
121 constexpr auto kUpsampleH = "upsample_h";
122 constexpr auto kUpsampleW = "upsample_w";
123 constexpr auto kUseDefaultInitialCFlag = "use_default_initial_c_flag";
124 constexpr auto kUseDefaultInitialHFlag = "use_default_initial_h_flag";
125 constexpr auto kUseGlobalStats = "use_global_stats";
126 constexpr auto kZoomFactor = "zoom_factor";
127 }  // namespace dpico
128 }  // namespace mindspore
129 #endif  // MINDSPORE_LITE_TOOLS_CONVERTER_ADAPTER_DPICO_COMMON_OP_ATTR_H_
130