2 #include <dlprim/operator.hpp> 5 namespace json {
class value; }
13 Reduction reduce = reduce_mean;
26 virtual void setup(std::vector<TensorSpecs>
const &in,
27 std::vector<TensorSpecs> &out,
28 std::vector<TensorSpecs> ¶meters,
31 virtual void reshape(std::vector<Shape>
const &in,
32 std::vector<Shape> &out,
35 virtual void forward(std::vector<Tensor> &input,
36 std::vector<Tensor> &output,
37 std::vector<Tensor> ¶meters,
41 virtual void backward( std::vector<TensorAndGradient> &input,
42 std::vector<TensorAndGradient> &output,
43 std::vector<TensorAndGradient> &,
48 template<
typename Index>
50 template<
typename Index>
Definition: nll_loss.hpp:7
virtual char const * operator_type() const
name of the operator type
Definition: nll_loss.hpp:21
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
This class is central representation of json objects.
Definition: json.hpp:652
Definition: nll_loss.hpp:17
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