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

Function writeFeatureDescription

mlmodel/src/Model.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 }
300
301 static void writeFeatureDescription(std::stringstream& ss,
302 const Specification::FeatureDescription& feature) {
303 ss << "\t\t"
304 << feature.name()
305 << " ("
306 << FeatureType(feature.type()).toString()
307 << ")";
308 if (feature.shortdescription() != "") {
309 ss << ": " << feature.shortdescription();
310 }
311 ss << "\n";
312 }
313
314 void Model::toStringStream(std::stringstream& ss) const {
315 ss << "Spec version: " << m_spec->specificationversion() << "\n";

Callers 1

toStringStreamMethod · 0.85

Calls 4

FeatureTypeClass · 0.70
toStringMethod · 0.65
nameMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected