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

Method isValid

modelpackage/src/ModelPackage.cpp:524–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524bool ModelPackageImpl::isValid(const std::filesystem::path& path)
525{
526 try {
527 ModelPackageImpl(path, false, true);
528 } catch (std::runtime_error& e) {
529 return false;
530 }
531 return true;
532}
533
534#pragma mark ModelPackage
535

Callers 2

test_mil_as_packageMethod · 0.45

Calls 1

ModelPackageImplClass · 0.85

Tested by 1

test_mil_as_packageMethod · 0.36