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 #ifndef MINDSPORE_INCLUDE_C_API_FORMAT_C_H 17 #define MINDSPORE_INCLUDE_C_API_FORMAT_C_H 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 typedef enum OH_AI_Format { 24 OH_AI_FORMAT_NCHW = 0, 25 OH_AI_FORMAT_NHWC = 1, 26 OH_AI_FORMAT_NHWC4 = 2, 27 OH_AI_FORMAT_HWKC = 3, 28 OH_AI_FORMAT_HWCK = 4, 29 OH_AI_FORMAT_KCHW = 5, 30 OH_AI_FORMAT_CKHW = 6, 31 OH_AI_FORMAT_KHWC = 7, 32 OH_AI_FORMAT_CHWK = 8, 33 OH_AI_FORMAT_HW = 9, 34 OH_AI_FORMAT_HW4 = 10, 35 OH_AI_FORMAT_NC = 11, 36 OH_AI_FORMAT_NC4 = 12, 37 OH_AI_FORMAT_NC4HW4 = 13, 38 OH_AI_FORMAT_NCDHW = 15, 39 OH_AI_FORMAT_NWC = 16, 40 OH_AI_FORMAT_NCW = 17 41 } OH_AI_Format; 42 43 #ifdef __cplusplus 44 } 45 #endif 46 #endif // MINDSPORE_INCLUDE_C_API_FORMAT_C_H 47