MCPcopy Create free account
hub / github.com/MegEngine/MegCC / MegCC_Device_is_known_value

Function MegCC_Device_is_known_value

runtime/src/cheader/model_reader.h:472–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472static inline int MegCC_Device_is_known_value(MegCC_Device_enum_t value)
473{
474 switch (value) {
475 case MegCC_Device_BARE_METAL: return 1;
476 case MegCC_Device_ARM64: return 1;
477 case MegCC_Device_ARM32: return 1;
478 case MegCC_Device_ARM64_V82: return 1;
479 case MegCC_Device_ARM32_V82: return 1;
480 case MegCC_Device_OPENCL_MALI: return 1;
481 default: return 0;
482 }
483}
484
485typedef int8_t MegCC_TensorType_enum_t;
486__flatbuffers_define_integer_type(MegCC_TensorType, MegCC_TensorType_enum_t, 8)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected