1 /** 2 * Copyright 2021 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_ENUM_H_ 18 #define MINDSPORE_LITE_TOOLS_CONVERTER_ADAPTER_DPICO_COMMON_OP_ENUM_H_ 19 20 namespace mindspore { 21 namespace dpico { 22 constexpr size_t kDims1 = 1; 23 constexpr size_t kDims2 = 2; 24 constexpr size_t kDims3 = 3; 25 constexpr size_t kDims4 = 4; 26 constexpr size_t kDims5 = 5; 27 constexpr size_t kDims6 = 6; 28 constexpr size_t kDims7 = 7; 29 constexpr size_t kDims8 = 8; 30 constexpr size_t kAxis1 = 1; 31 constexpr size_t kAxis2 = 2; 32 constexpr size_t kAxis3 = 3; 33 constexpr size_t kInputIndex1 = 1; 34 constexpr size_t kInputIndex2 = 2; 35 constexpr size_t kInputIndex3 = 3; 36 constexpr size_t kInputIndex4 = 4; 37 constexpr size_t kInputIndex5 = 5; 38 constexpr int kMaxInputWOf4Dims = 4096; 39 constexpr int kMaxInputWOf2Dims = 16384; 40 constexpr int kMaxNumOutput = 32768; 41 constexpr int kMaxTopNum = 32; 42 constexpr int kMaxBottomNum = 32; 43 constexpr int kAxisLowerBound = -4; 44 constexpr int kAxisUpperBound = 3; 45 constexpr size_t kMaxLineCount = 9999; 46 } // namespace dpico 47 } // namespace mindspore 48 49 #endif // MINDSPORE_LITE_TOOLS_CONVERTER_ADAPTER_DPICO_COMMON_OP_ENUM_H_ 50