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

Function setupStateFeature

mlmodel/tests/InterfaceTests.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static void setupStateFeature(Specification::FeatureDescription *feature, const std::string& name) {
31 feature->set_name(name);
32 feature->mutable_type()->mutable_statetype()->mutable_arraytype()->set_datatype(::CoreML::Specification::ArrayFeatureType_ArrayDataType_FLOAT16);
33 feature->mutable_type()->mutable_statetype()->mutable_arraytype()->add_shape(1);
34}
35
36static ValidationPolicy validationPolicyForStateTests() {
37 auto validationPolicy = ValidationPolicy();

Calls 1

set_nameMethod · 0.45

Tested by

no test coverage detected