MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreatePoolFromSet

Function CreatePoolFromSet

tensorflow/core/util/proto/descriptors.cc:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29Status CreatePoolFromSet(const protobuf::FileDescriptorSet& set,
30 std::unique_ptr<protobuf::DescriptorPool>* out_pool) {
31 *out_pool = absl::make_unique<protobuf::DescriptorPool>();
32 for (const auto& file : set.file()) {
33 if ((*out_pool)->BuildFile(file) == nullptr) {
34 return errors::InvalidArgument("Failed to load FileDescriptorProto: ",
35 file.DebugString());
36 }
37 }
38 return Status::OK();
39}
40
41// Build a `DescriptorPool` from the named file or URI. The file or URI
42// must be available to the current TensorFlow environment.

Callers 2

Calls 3

InvalidArgumentFunction · 0.85
fileMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected