This is main object that represent the pair of OpenCL platform and device all other objects use it...
Definition: context.hpp:302
void fill_random(Tensor &t, cl_ulong philox_seed, cl_ulong philox_seq, RandomDistribution dist, float p1, float p2, ExecutionContext const &e)
Fill tensor with random numbers using provided distribution.
void scale_tensor(float s, Tensor &t, ExecutionContext const &ec)
Scale tensor by factor inplace, if s==0 fills with zero so nan is not propagated of s==0...
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121