| 241 | } |
| 242 | |
| 243 | inline const std::vector<std::string> GetRegisteredLayers() { |
| 244 | vector<std::string> ret; |
| 245 | for (const string type : Factory<Layer>::GetIDs()) { |
| 246 | auto layer = CreateLayer(type); |
| 247 | ret.push_back("Register type: " + type); |
| 248 | } |
| 249 | return ret; |
| 250 | } |
| 251 | } // namespace singa |
| 252 | #endif // SINGA_MODEL_LAYER_H_ |
nothing calls this directly
no test coverage detected