void add_bias(Tensor &t, Tensor &b, ExecutionContext const &e)
Add bias to t over dimentsion 1: t[:,i,:,:] = b[i].
This is main object that represent the pair of OpenCL platform and device all other objects use it...
Definition: context.hpp:302
virtual void enqueue(Tensor &dy, Tensor &dw, Tensor &ws, float beta, ExecutionContext const &e)=0
make sure you provide worksapce of size workspace() for operations
static std::unique_ptr< BiasBackwardFilter > create(Context &ctx, Shape const &dy_shape, DataType dt=float_data)
Create operator for backward bias calculation. dy_shape is the shape of output tesnor for IP it shoul...
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121