DLPrimitives
bwd_bias.hpp
1 #pragma once
2 #include <dlprim/operator.hpp>
3 namespace dlprim {
4  namespace core { class BiasBackwardFilter; }
5  class BWBias {
6  public:
7  BWBias(Context &ctx,Shape const &sp,DataType dt=float_data);
8  ~BWBias();
9  void backward(Tensor &dy,Tensor &dw,Tensor &ws,float beta,ExecutionContext const &e);
10  size_t workspace() const;
11  private:
12  void backward_cpu(Tensor &dy,Tensor &dw,float beta);
13  std::unique_ptr<core::BiasBackwardFilter> impl_;
14  };
15 }
Definition: bwd_bias.hpp:5
Tensor shape.
Definition: shape.hpp:18
This is main object that represent the pair of OpenCL platform and device all other objects use it...
Definition: context.hpp:302
DataType
type definition
Definition: definitions.hpp:70
Mane namespace.
Definition: context.hpp:9
Central Data Contrainer - Tensor.
Definition: tensor.hpp:99
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121