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_API_DATA_TYPE_H_ 17 #define MINDSPORE_INCLUDE_API_DATA_TYPE_H_ 18 19 #include <cstdint> 20 21 namespace mindspore { 22 enum class DataType : int { 23 kTypeUnknown = 0, 24 kObjectTypeString = 12, 25 kObjectTypeList = 13, 26 kObjectTypeTuple = 14, 27 kObjectTypeTensorType = 17, 28 kNumberTypeBegin = 29, 29 kNumberTypeBool = 30, 30 kNumberTypeInt8 = 32, 31 kNumberTypeInt16 = 33, 32 kNumberTypeInt32 = 34, 33 kNumberTypeInt64 = 35, 34 kNumberTypeUInt8 = 37, 35 kNumberTypeUInt16 = 38, 36 kNumberTypeUInt32 = 39, 37 kNumberTypeUInt64 = 40, 38 kNumberTypeFloat16 = 42, 39 kNumberTypeFloat32 = 43, 40 kNumberTypeFloat64 = 44, 41 kNumberTypeBFloat16 = 45, 42 kNumberTypeEnd = 52, 43 // add new enum here 44 kInvalidType = INT32_MAX, 45 }; 46 } // namespace mindspore 47 #endif // MINDSPORE_INCLUDE_API_DATA_TYPE_H_ 48