MCPcopy Create free account
hub / github.com/BVLC/caffe / AddCreator

Method AddCreator

include/caffe/solver_factory.hpp:65–70  ·  view source on GitHub ↗

Adds a creator.

Source from the content-addressed store, hash-verified

63
64 // Adds a creator.
65 static void AddCreator(const string& type, Creator creator) {
66 CreatorRegistry& registry = Registry();
67 CHECK_EQ(registry.count(type), 0)
68 << "Solver type " << type << " already registered.";
69 registry[type] = creator;
70 }
71
72 // Get a solver using a SolverParameter.
73 static Solver<Dtype>* CreateSolver(const SolverParameter& param) {

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected