From dcb3f3b9b8d1439d8d80fefd922ba7476df6e1d1 Mon Sep 17 00:00:00 2001 From: yangyingchun Date: Tue, 22 Jul 2025 10:27:04 +0800 Subject: [PATCH] fix/add maxshape define --- docs/lite/api/source_zh_cn/api_c/model_c.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/lite/api/source_zh_cn/api_c/model_c.md b/docs/lite/api/source_zh_cn/api_c/model_c.md index ca5e2b1033..37ca2979b1 100644 --- a/docs/lite/api/source_zh_cn/api_c/model_c.md +++ b/docs/lite/api/source_zh_cn/api_c/model_c.md @@ -47,6 +47,16 @@ Model定义了MindSpore中编译和运行的模型。 | [MSStatus MSExportModelBuffer(MSModelHandle model, MSModelType model_type, char **model_data, size_t *data_size,MSQuantizationType quantization_type, bool export_inference_only,char **output_tensor_name, size_t num)](#msexportmodelbuffer) | | [MSStatus MSExportWeightsCollaborateWithMicro(MSModelHandle model, MSModelType model_type,const char *weight_file, bool is_inference, bool enable_fp16,char **changeable_weights_name, size_t num)](#msexportweightscollaboratewithmicro) | +### 定义 + +#### MS_MAX_SHAPE_NUM + +```C +#define MS_MAX_SHAPE_NUM 32 +``` + +MSTensor最大支持的维度为`MS_MAX_SHAPE_NUM`。 + ### 公有函数 #### MSModelCreate -- Gitee