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

Function setupMultiArrayFeature

mlmodel/tests/InterfaceTests.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static void setupMultiArrayFeature(Specification::FeatureDescription *feature, const std::string& name) {
25 feature->set_name(name);
26 feature->mutable_type()->mutable_multiarraytype()->set_datatype(::CoreML::Specification::ArrayFeatureType_ArrayDataType_FLOAT32);
27 feature->mutable_type()->mutable_multiarraytype()->add_shape(1);
28}
29
30static void setupStateFeature(Specification::FeatureDescription *feature, const std::string& name) {
31 feature->set_name(name);

Calls 1

set_nameMethod · 0.45

Tested by

no test coverage detected