Program Listing for File types_c.h
↰ Return to documentation for file (include/runtime/include/c_api/types_c.h
)
#ifndef MINDSPORE_INCLUDE_C_API_TYPES_C_H
#define MINDSPORE_INCLUDE_C_API_TYPES_C_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MS_API
#ifdef _WIN32
#define MS_API __declspec(dllexport)
#else
#define MS_API __attribute__((visibility("default")))
#endif
#endif
typedef enum MSModelType {
kMSModelTypeMindIR = 0,
// insert new data type here
kMSModelTypeInvalid = 0xFFFFFFFF
} MSModelType;
typedef enum MSDeviceType {
kMSDeviceTypeCPU = 0,
kMSDeviceTypeGPU,
kMSDeviceTypeKirinNPU,
// add new type here
kMSDeviceTypeInvalid = 100,
} MSDeviceType;
#ifdef __cplusplus
}
#endif
#endif // MINDSPORE_INCLUDE_C_API_TYPES_C_H