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

Method FindEntry

tensorflow/core/framework/allocator_registry.cc:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32const AllocatorFactoryRegistry::FactoryEntry*
33AllocatorFactoryRegistry::FindEntry(const string& name, int priority) const {
34 for (auto& entry : factories_) {
35 if (!name.compare(entry.name) && priority == entry.priority) {
36 return &entry;
37 }
38 }
39 return nullptr;
40}
41
42void AllocatorFactoryRegistry::Register(const char* source_file,
43 int source_line, const string& name,

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected