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

Function validateOptionalGeneric

mlmodel/src/Validation/InterfaceValidators.cpp:643–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641 }
642
643 static Result validateOptionalGeneric(const Specification::ModelDescription& interface) {
644 for (const auto& input : interface.input()) {
645 if (input.type().isoptional()) {
646 return Result(ResultType::INVALID_MODEL_PARAMETERS, "Features cannot be optional to this type of model.");
647 }
648 }
649 return validateOptionalOutputs(interface);
650 }
651
652 inline Result validateOptionalTree(const Specification::ModelDescription& interface) {
653 return validateOptionalOutputs(interface);

Callers 1

validateOptionalFunction · 0.85

Calls 3

ResultClass · 0.85
validateOptionalOutputsFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected