1be168c0dSopenharmony_ci/**
2be168c0dSopenharmony_ci * Copyright 2021 Huawei Technologies Co., Ltd
3be168c0dSopenharmony_ci *
4be168c0dSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
5be168c0dSopenharmony_ci * you may not use this file except in compliance with the License.
6be168c0dSopenharmony_ci * You may obtain a copy of the License at
7be168c0dSopenharmony_ci *
8be168c0dSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0
9be168c0dSopenharmony_ci *
10be168c0dSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
11be168c0dSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
12be168c0dSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13be168c0dSopenharmony_ci * See the License for the specific language governing permissions and
14be168c0dSopenharmony_ci * limitations under the License.
15be168c0dSopenharmony_ci */
16be168c0dSopenharmony_ci
17be168c0dSopenharmony_ci/**
18be168c0dSopenharmony_ci * @addtogroup MindSpore
19be168c0dSopenharmony_ci * @{
20be168c0dSopenharmony_ci *
21be168c0dSopenharmony_ci * @brief 提供MindSpore Lite的模型推理相关接口。
22be168c0dSopenharmony_ci *
23be168c0dSopenharmony_ci * @Syscap SystemCapability.Ai.MindSpore
24be168c0dSopenharmony_ci * @since 9
25be168c0dSopenharmony_ci */
26be168c0dSopenharmony_ci
27be168c0dSopenharmony_ci/**
28be168c0dSopenharmony_ci * @file format.h
29be168c0dSopenharmony_ci *
30be168c0dSopenharmony_ci * @brief 提供张量数据的排列格式。
31be168c0dSopenharmony_ci *
32be168c0dSopenharmony_ci * @library libmindspore_lite_ndk.so
33be168c0dSopenharmony_ci * @since 9
34be168c0dSopenharmony_ci */
35be168c0dSopenharmony_ci#ifndef MINDSPORE_INCLUDE_C_API_FORMAT_C_H
36be168c0dSopenharmony_ci#define MINDSPORE_INCLUDE_C_API_FORMAT_C_H
37be168c0dSopenharmony_ci
38be168c0dSopenharmony_ci#ifdef __cplusplus
39be168c0dSopenharmony_ciextern "C" {
40be168c0dSopenharmony_ci#endif
41be168c0dSopenharmony_ci
42be168c0dSopenharmony_citypedef enum OH_AI_Format {
43be168c0dSopenharmony_ci  OH_AI_FORMAT_NCHW = 0,
44be168c0dSopenharmony_ci  OH_AI_FORMAT_NHWC = 1,
45be168c0dSopenharmony_ci  OH_AI_FORMAT_NHWC4 = 2,
46be168c0dSopenharmony_ci  OH_AI_FORMAT_HWKC = 3,
47be168c0dSopenharmony_ci  OH_AI_FORMAT_HWCK = 4,
48be168c0dSopenharmony_ci  OH_AI_FORMAT_KCHW = 5,
49be168c0dSopenharmony_ci  OH_AI_FORMAT_CKHW = 6,
50be168c0dSopenharmony_ci  OH_AI_FORMAT_KHWC = 7,
51be168c0dSopenharmony_ci  OH_AI_FORMAT_CHWK = 8,
52be168c0dSopenharmony_ci  OH_AI_FORMAT_HW = 9,
53be168c0dSopenharmony_ci  OH_AI_FORMAT_HW4 = 10,
54be168c0dSopenharmony_ci  OH_AI_FORMAT_NC = 11,
55be168c0dSopenharmony_ci  OH_AI_FORMAT_NC4 = 12,
56be168c0dSopenharmony_ci  OH_AI_FORMAT_NC4HW4 = 13,
57be168c0dSopenharmony_ci  OH_AI_FORMAT_NCDHW = 15,
58be168c0dSopenharmony_ci  OH_AI_FORMAT_NWC = 16,
59be168c0dSopenharmony_ci  OH_AI_FORMAT_NCW = 17
60be168c0dSopenharmony_ci} OH_AI_Format;
61be168c0dSopenharmony_ci
62be168c0dSopenharmony_ci#ifdef __cplusplus
63be168c0dSopenharmony_ci}
64be168c0dSopenharmony_ci#endif
65be168c0dSopenharmony_ci#endif  // MINDSPORE_INCLUDE_C_API_FORMAT_C_H
66