yolo test

This commit is contained in:
Francesco Gatti
2017-08-01 17:12:29 +02:00
parent b94931f9f7
commit 1cfe70365f
6 changed files with 144 additions and 16 deletions
+5 -5
View File
@@ -2,9 +2,9 @@
#include "tkdnn.h"
const char *input_bin = "../tests/test/input.bin";
const char *c0_bin = "../tests/test/layers/conv0.bin";
const char *c1_bin = "../tests/test/layers/conv1.bin";
const char *d2_bin = "../tests/test/layers/dense2.bin";
const char *c0_bin = "../tests/test/layers/c0.bin";
const char *c1_bin = "../tests/test/layers/c1.bin";
const char *d2_bin = "../tests/test/layers/d2.bin";
const char *output_bin = "../tests/test/output.bin";
int main() {
@@ -13,9 +13,9 @@ int main() {
tkDNN::Network net;
tkDNN::dataDim_t dim(1, 1, 10, 10, 1);
tkDNN::Layer *l;
l = new tkDNN::Conv2d (&net, dim, 2, 4, 4, 2, 2, 1, 1, c0_bin);
l = new tkDNN::Conv2d (&net, dim, 2, 4, 4, 2, 2, 0, 0, c0_bin);
l = new tkDNN::Activation (&net, l->output_dim, CUDNN_ACTIVATION_RELU);
l = new tkDNN::Conv2d (&net, l->output_dim, 4, 2, 2, 1, 1, 1, 1, c1_bin);
l = new tkDNN::Conv2d (&net, l->output_dim, 4, 2, 2, 1, 1, 0, 0, c1_bin);
l = new tkDNN::Activation (&net, l->output_dim, CUDNN_ACTIVATION_RELU);
l = new tkDNN::Flatten (&net, l->output_dim);
l = new tkDNN::Dense (&net, l->output_dim, 4, d2_bin);