yolo test
This commit is contained in:
+5
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user