MCPcopy Create free account
hub / github.com/apple/coremltools / hasFloat16MultiArray

Function hasFloat16MultiArray

mlmodel/src/Utils.cpp:403–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static bool hasFloat16MultiArray(const Specification::Model& model) {
404 return anyFeatureDescriptionOfModel(
405 model,
406 [](const auto& fd) {
407 return
408 (fd.type().Type_case() == Specification::FeatureType::kMultiArrayType) &&
409 (fd.type().multiarraytype().datatype() == Specification::ArrayFeatureType_ArrayDataType_FLOAT16);
410 });
411}
412
413
414static bool hasInt8MultiArray(const Specification::Model& model) {

Callers 1

hasIOS16FeaturesMethod · 0.85

Calls 2

typeMethod · 0.45

Tested by

no test coverage detected