You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
graphengine/ge/common/formats/utils/formats_definitions.h

106 lines
1.8 KiB

5 years ago
/**
* Copyright 2019 Huawei Technologies Co., Ltd
5 years ago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GE_COMMON_FORMATS_UTILS_FORMATS_DEFINITIONS_H_
#define GE_COMMON_FORMATS_UTILS_FORMATS_DEFINITIONS_H_
namespace ge {
namespace formats {
static const int kCubeSize = 16;
static const int kNiSize = 16;
static const int64_t kShapeItemNumMAX = 1024UL * 1024UL * 1024UL * 1024UL;
4 years ago
enum NchwDimIndex {
kNchwN,
kNchwC,
kNchwH,
kNchwW,
kNchwDimsNum
};
5 years ago
4 years ago
enum NhwcDimIndex {
kNhwcN,
kNhwcH,
kNhwcW,
kNhwcC,
kNhwcDimsNum
};
5 years ago
4 years ago
enum HwcnDimIndex {
kHwcnH,
kHwcnW,
kHwcnC,
kHwcnN,
kHwcnDimsNum
};
5 years ago
enum ChwnDimIndex {
kChwnC,
kChwnH,
kChwnW,
kChwnN,
kChwnDimsNum
};
4 years ago
enum Nc1hwc0DimIndex {
kNc1hwc0N,
kNc1hwc0C1,
kNc1hwc0H,
kNc1hwc0W,
kNc1hwc0C0,
kNc1hwc0DimsNum
};
5 years ago
enum C1hwncoc0DimIndex {
kC1hwncoc0C1,
kC1hwncoc0H,
kC1hwncoc0W,
kC1hwncoc0N,
kC1hwncoc0Co,
kC1hwncoc0C0,
kC1hwncoc0DimsNum
};
4 years ago
enum FracZDimIndex {
kFracZHWC1,
kFracZN0,
kFracZNi,
kFracZC0,
kFracZDimsNum
};
4 years ago
enum DhwcnDimIndex {
kDhwcnD,
kDhwcnH,
kDhwcnW,
kDhwcnC,
kDhwcnN,
kDhwcnDimsNum
};
4 years ago
enum DhwncDimIndex {
kDhwncD,
kDhwncH,
kDhwncW,
kDhwncN,
kDhwncC,
kDhwncDimsNum
};
5 years ago
} // namespace formats
} // namespace ge
#endif // GE_COMMON_FORMATS_UTILS_FORMATS_DEFINITIONS_H_