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

Method addOutput

mlmodel/src/Model.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 Result Model::addOutput(const std::string& targetName,
256 FeatureType targetType) {
257 Specification::ModelDescription* interface = m_spec->mutable_description();
258 Specification::FeatureDescription *arg = interface->add_output();
259 arg->set_name(targetName);
260 arg->set_allocated_type(targetType.allocateCopy());
261 return Result();
262 }
263
264 MLModelType Model::modelType() const {
265 return static_cast<MLModelType>(m_spec->Type_case());

Callers 3

testLinearModelBasicFunction · 0.80
testTreeEnsembleBasicFunction · 0.80
testBasicSaveLoadFunction · 0.80

Calls 3

ResultClass · 0.85
allocateCopyMethod · 0.80
set_nameMethod · 0.45

Tested by 3

testLinearModelBasicFunction · 0.64
testTreeEnsembleBasicFunction · 0.64
testBasicSaveLoadFunction · 0.64