2 #include <dlprim/operator.hpp> 4 namespace json {
class value; }
23 virtual void setup(std::vector<TensorSpecs>
const &in,
24 std::vector<TensorSpecs> &out,
25 std::vector<TensorSpecs> ¶meters,
28 virtual void reshape(std::vector<Shape>
const &in,
29 std::vector<Shape> &out,
32 virtual void forward(std::vector<Tensor> &input,
33 std::vector<Tensor> &output,
34 std::vector<Tensor> ¶meters,
38 virtual void backward(std::vector<TensorAndGradient> &input,
39 std::vector<TensorAndGradient> &output,
40 std::vector<TensorAndGradient> ¶meters,
Definition of Tensor without actual memory/object.
Definition: tensor.hpp:11
Definition: activation.hpp:5
virtual char const * operator_type() const
name of the operator type
Definition: activation.hpp:18
Base class for backward/forward propogation calculations for internal network.
Definition: operator.hpp:15
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
This class is central representation of json objects.
Definition: json.hpp:652
Mane namespace.
Definition: context.hpp:9
Central Data Contrainer - Tensor.
Definition: tensor.hpp:99
StandardActivations
Parameterless Activations that can be embedded to general kernels like inner product or convolution...
Definition: definitions.hpp:266
Definition: activation.hpp:12
This class is used to pass cl::Events that the kernel should wait for and/or signal event completion...
Definition: context.hpp:121