2 #include <dlprim/operator.hpp> 4 namespace json {
class value; }
5 namespace core {
class SliceCopy;
class Scale; }
23 static void copy_cpu(
size_t &offset,
int dim,
Tensor &in,
Tensor &out,Cp cp);
36 virtual void setup(std::vector<TensorSpecs>
const &in,
37 std::vector<TensorSpecs> &out,
38 std::vector<TensorSpecs> ¶meters,
41 virtual void reshape(std::vector<Shape>
const &in,
42 std::vector<Shape> &out,
45 virtual void forward(std::vector<Tensor> &input,
46 std::vector<Tensor> &output,
47 std::vector<Tensor> ¶meters,
51 virtual void backward(std::vector<TensorAndGradient> &input,
52 std::vector<TensorAndGradient> &output,
53 std::vector<TensorAndGradient> ¶meters,
60 std::unique_ptr<core::SliceCopy> copy_;
72 virtual void setup(std::vector<TensorSpecs>
const &in,
73 std::vector<TensorSpecs> &out,
74 std::vector<TensorSpecs> ¶meters,
77 virtual void reshape(std::vector<Shape>
const &in,
78 std::vector<Shape> &out,
81 virtual void forward(std::vector<Tensor> &input,
82 std::vector<Tensor> &output,
83 std::vector<Tensor> ¶meters,
87 virtual void backward(std::vector<TensorAndGradient> &input,
88 std::vector<TensorAndGradient> &output,
89 std::vector<TensorAndGradient> ¶meters,
96 std::unique_ptr<core::SliceCopy> copy_;
97 std::unique_ptr<core::Scale> scale_;
virtual char const * operator_type() const
name of the operator type
Definition: concat.hpp:31
Definition: concat.hpp:13
virtual char const * operator_type() const
name of the operator type
Definition: concat.hpp:67
Definition: concat.hpp:63
Definition: concat.hpp:20
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
Definition: concat.hpp:27
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