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

Function hasInt8MultiArray

mlmodel/src/Utils.cpp:414–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414static bool hasInt8MultiArray(const Specification::Model& model) {
415 return anyFeatureDescriptionOfModel(
416 model,
417 [](const auto& fd) {
418 return
419 (fd.type().Type_case() == Specification::FeatureType::kMultiArrayType) &&
420 (fd.type().multiarraytype().datatype() == Specification::ArrayFeatureType_ArrayDataType_INT8);
421 });
422}
423
424
425static bool hasOpsets(const Specification::Model& model, const std::string& opset) {

Callers 1

hasIOS26FeaturesMethod · 0.85

Calls 2

typeMethod · 0.45

Tested by

no test coverage detected