MCPcopy Create free account
hub / github.com/apache/singa / GetRegistry

Method GetRegistry

include/singa/utils/factory.h:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 // Map that stores the registered creation functions
81 typedef std::map<ID, std::function<T*(void)>> Registry;
82 static Registry* GetRegistry() {
83 static Registry reg;
84 return &reg;
85 }
86};
87
88template <typename Base, typename Sub, typename ID = std::string>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected