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

Function hasCategoricalSequences

mlmodel/src/Utils.cpp:792–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792static bool hasCategoricalSequences(const Specification::Model& model) {
793 return anyFeatureDescriptionOfModel(
794 model,
795 [](const auto& fd) {
796 if (fd.type().Type_case() == Specification::FeatureType::kSequenceType) {
797 switch (fd.type().sequencetype().Type_case()) {
798 case Specification::SequenceFeatureType::kStringType:
799 case Specification::SequenceFeatureType::kInt64Type:
800 return true;
801 default:
802 break;
803 }
804 }
805 return false;
806 });
807}
808
809static bool hasIOS12NewNeuralNetworkLayers(const Specification::Model& model) {
810

Callers 1

hasIOS12FeaturesMethod · 0.85

Calls 2

typeMethod · 0.45

Tested by

no test coverage detected