initial commit

This commit is contained in:
Francesco Gatti
2017-06-28 01:14:39 +02:00
commit 0767df43a2
12 changed files with 441 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include <iostream>
#include "Layer.h"
namespace tkDNN {
Layer::Layer(Network *net, dataDim_t in_dim) {
this->net = net;
this->input_dim = in_dim;
checkCUDNN( cudnnCreateTensorDescriptor(&srcTensorDesc) );
checkCUDNN( cudnnCreateTensorDescriptor(&dstTensorDesc) );
}
Layer::~Layer() {
checkCUDNN( cudnnDestroyTensorDescriptor(srcTensorDesc) );
checkCUDNN( cudnnDestroyTensorDescriptor(dstTensorDesc) );
}
}