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

Function hasGrayscaleFloat16Image

mlmodel/src/Utils.cpp:456–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456static bool hasGrayscaleFloat16Image(const Specification::Model& model) {
457 return anyFeatureDescriptionOfModel(
458 model,
459 [](const auto& fd) {
460 return
461 (fd.type().Type_case() == Specification::FeatureType::kImageType) &&
462 (fd.type().imagetype().colorspace() == Specification::ImageFeatureType_ColorSpace_GRAYSCALE_FLOAT16);
463 });
464}
465
466bool CoreML::hasIOS11_2Features(const Specification::Model& model) {
467 return walkModelAndPipeline(

Callers 1

hasIOS16FeaturesMethod · 0.85

Calls 2

typeMethod · 0.45

Tested by

no test coverage detected