register a custom layer that had been omitted on yolo v2.
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: Seungbaek Hong <sb92.hong@samsung.com>
std::cout << "batch_size: " << BATCH_SIZE << " epochs: " << EPOCHS
<< std::endl;
+ try {
+ auto &app_context = nntrainer::AppContext::Global();
+ app_context.registerFactory(nntrainer::createLayer<custom::ReorgLayer>);
+ app_context.registerFactory(
+ nntrainer::createLayer<custom::YoloV2LossLayer>);
+ } catch (std::invalid_argument &e) {
+ std::cerr << "failed to register factory, reason: " << e.what()
+ << std::endl;
+ return 1;
+ }
+
try {
// create YOLO v2 model
ModelHandle model = YOLO();