---
title: 预留接口
description: "本章接口为预留接口，后续有可能变更或废弃，不建议开发者使用，开发者无需关注。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasascendc_api_07_1101.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1101.html
indexId: 9bb98a55563f336cfc0dd8609540a94610c830314a3013371a42f83c901a0fa370
---
# 预留接口

本章接口为预留接口，后续有可能变更或废弃，不建议开发者使用，开发者无需关注。


**表1 接口列表**

| 接口名称 | 功能说明 |
| --- | --- |
| ToDataType(const std::string &dataTypeStr) | 将给定的字符串转换为op::DataType（即ge::DataType）。 |
| CalcShapeBytes(int64\_t size, DataType dataType, bool ceil=false) | 用给定的shape大小和dtype计算总大小。 |
| CheckType(const DataType dtype, const std::initializer\_list<DataType> &valid\_types) | 检查data type是否在给定的列表中 |
