better network model

This commit is contained in:
Francesco Gatti
2017-08-01 23:03:02 +02:00
parent 300b0af5dd
commit e8355cee67
22 changed files with 166 additions and 179 deletions
+3 -3
View File
@@ -4,11 +4,11 @@
namespace tkDNN {
Layer::Layer(Network *net, dataDim_t in_dim) {
Layer::Layer(Network *net) {
this->net = net;
this->input_dim = in_dim;
this->output_dim = in_dim;
this->input_dim = net->getOutputDim();
this->output_dim = input_dim;
checkCUDNN( cudnnCreateTensorDescriptor(&srcTensorDesc) );
checkCUDNN( cudnnCreateTensorDescriptor(&dstTensorDesc) );