#include #include "tkdnn.h" #include "Network.h" #include "Layer.h" namespace tkDNN { Network::Network() { float tk_ver = float(tkDNN::getVersion())/1000; float cu_ver = float(cudnnGetVersion())/1000; std::cout<<"New NETWORK (tkDNN v"<infer(dim, data); return data; } bool Network::addLayer(Layer *l) { if(num_layers == MAX_LAYERS) return false; layers[num_layers++] = l; return true; } }