#include #include "Layer.h" #include "kernels.h" namespace tkDNN { MulAdd::MulAdd(Network *net, dnnType mul, dnnType add) : Layer(net) { this->mul = mul; this->add = add; int size = input_dim.tot(); // create a vector with all value setted to add dnnType *add_vector_h = new dnnType[size]; for(int i=0; icublasHandle, srcData, dstData, add_vector, input_dim.tot(), mul); //update data dimensions dim = output_dim; return dstData; } }