17777dab0Sopenharmony_ci/**
27777dab0Sopenharmony_ci * Copyright 2021 Huawei Technologies Co., Ltd
37777dab0Sopenharmony_ci *
47777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
57777dab0Sopenharmony_ci * you may not use this file except in compliance with the License.
67777dab0Sopenharmony_ci * You may obtain a copy of the License at
77777dab0Sopenharmony_ci *
87777dab0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0
97777dab0Sopenharmony_ci *
107777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
117777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
127777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
137777dab0Sopenharmony_ci * See the License for the specific language governing permissions and
147777dab0Sopenharmony_ci * limitations under the License.
157777dab0Sopenharmony_ci */
167777dab0Sopenharmony_ci
177777dab0Sopenharmony_ci/**
187777dab0Sopenharmony_ci * @addtogroup MindSpore
197777dab0Sopenharmony_ci * @{
207777dab0Sopenharmony_ci *
217777dab0Sopenharmony_ci * @brief 提供MindSpore Lite的模型推理相关接口。
227777dab0Sopenharmony_ci *
237777dab0Sopenharmony_ci * @Syscap SystemCapability.Ai.MindSpore
247777dab0Sopenharmony_ci * @since 9
257777dab0Sopenharmony_ci */
267777dab0Sopenharmony_ci
277777dab0Sopenharmony_ci/**
287777dab0Sopenharmony_ci * @file format.h
297777dab0Sopenharmony_ci * @kit MindSporeLiteKit
307777dab0Sopenharmony_ci * @brief 提供张量数据的排列格式。
317777dab0Sopenharmony_ci *
327777dab0Sopenharmony_ci * @library libmindspore_lite_ndk.so
337777dab0Sopenharmony_ci * @since 9
347777dab0Sopenharmony_ci */
357777dab0Sopenharmony_ci#ifndef MINDSPORE_INCLUDE_C_API_FORMAT_C_H
367777dab0Sopenharmony_ci#define MINDSPORE_INCLUDE_C_API_FORMAT_C_H
377777dab0Sopenharmony_ci
387777dab0Sopenharmony_ci#ifdef __cplusplus
397777dab0Sopenharmony_ciextern "C" {
407777dab0Sopenharmony_ci#endif
417777dab0Sopenharmony_ci
427777dab0Sopenharmony_citypedef enum OH_AI_Format {
437777dab0Sopenharmony_ci  OH_AI_FORMAT_NCHW = 0,
447777dab0Sopenharmony_ci  OH_AI_FORMAT_NHWC = 1,
457777dab0Sopenharmony_ci  OH_AI_FORMAT_NHWC4 = 2,
467777dab0Sopenharmony_ci  OH_AI_FORMAT_HWKC = 3,
477777dab0Sopenharmony_ci  OH_AI_FORMAT_HWCK = 4,
487777dab0Sopenharmony_ci  OH_AI_FORMAT_KCHW = 5,
497777dab0Sopenharmony_ci  OH_AI_FORMAT_CKHW = 6,
507777dab0Sopenharmony_ci  OH_AI_FORMAT_KHWC = 7,
517777dab0Sopenharmony_ci  OH_AI_FORMAT_CHWK = 8,
527777dab0Sopenharmony_ci  OH_AI_FORMAT_HW = 9,
537777dab0Sopenharmony_ci  OH_AI_FORMAT_HW4 = 10,
547777dab0Sopenharmony_ci  OH_AI_FORMAT_NC = 11,
557777dab0Sopenharmony_ci  OH_AI_FORMAT_NC4 = 12,
567777dab0Sopenharmony_ci  OH_AI_FORMAT_NC4HW4 = 13,
577777dab0Sopenharmony_ci  OH_AI_FORMAT_NCDHW = 15,
587777dab0Sopenharmony_ci  OH_AI_FORMAT_NWC = 16,
597777dab0Sopenharmony_ci  OH_AI_FORMAT_NCW = 17
607777dab0Sopenharmony_ci} OH_AI_Format;
617777dab0Sopenharmony_ci
627777dab0Sopenharmony_ci#ifdef __cplusplus
637777dab0Sopenharmony_ci}
647777dab0Sopenharmony_ci#endif
657777dab0Sopenharmony_ci#endif  // MINDSPORE_INCLUDE_C_API_FORMAT_C_H
66