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

Function hasMultiFunctions

mlmodel/src/Utils.cpp:1000–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static bool hasMultiFunctions(const Specification::Model& model) {
1001 return walkModelAndPipeline(
1002 model,
1003 [](const Specification::Model& m) {
1004 const auto& description = m.description();
1005 return description.functions_size() != 0 || !description.defaultfunctionname().empty();
1006 });
1007}
1008
1009static bool hasEmptyInput(const Specification::Model& model) {
1010 return walkModelAndPipeline(

Callers 1

hasIOS18FeaturesMethod · 0.85

Calls 3

walkModelAndPipelineFunction · 0.85
descriptionMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected