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