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

Method Create

include/singa/utils/factory.h:66–71  ·  view source on GitHub ↗

* create an instance by providing its id * * @param id */

Source from the content-addressed store, hash-verified

64 * @param id
65 */
66 static T* Create(const ID& id) {
67 Registry* reg = GetRegistry();
68 CHECK(reg->find(id) != reg->end())
69 << "The creation function for " << id << " has not been registered";
70 return (*reg)[id]();
71 }
72
73 static const std::vector<ID> GetIDs() {
74 std::vector<ID> keys;

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected