This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tkDNN/src/Layer.cpp
T
Francesco Gatti a86df107be ELU implemented
2017-06-28 11:56:43 +00:00

23 lines
473 B
C++

#include <iostream>
#include "Layer.h"
namespace tkDNN {
Layer::Layer(Network *net, dataDim_t in_dim) {
this->net = net;
this->input_dim = in_dim;
this->output_dim = in_dim;
checkCUDNN( cudnnCreateTensorDescriptor(&srcTensorDesc) );
checkCUDNN( cudnnCreateTensorDescriptor(&dstTensorDesc) );
}
Layer::~Layer() {
checkCUDNN( cudnnDestroyTensorDescriptor(srcTensorDesc) );
checkCUDNN( cudnnDestroyTensorDescriptor(dstTensorDesc) );
}
}