Removed obsolete operations constructors in [mir].
Signed-off-by: Dmitry Gusev <d.gusev@partner.samsung.com>
class AvgPool2DOp : public Operation
{
public:
- AvgPool2DOp(Output *arg, const std::vector<std::int32_t> &window_size,
- const std::vector<std::int32_t> &strides,
- const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, bool include_pad,
- DataFormat data_format)
- : Operation(Type::avgPool2D, {arg})
- {
- _attributes.window = window_size;
- _attributes.strides = strides;
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.include_pad = include_pad;
- _attributes.data_format = data_format;
-
- inferOutputShapes();
- }
-
AvgPool2DOp(Output *arg, const AvgPool2DOpAttributes &attributes)
: Operation(Type::avgPool2D, {arg}), _attributes(attributes)
{
class Conv2DOp : public Operation
{
public:
- Conv2DOp(Output *input, Output *kernel, const std::vector<std::int32_t> &strides,
- const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, DataFormat data_format)
- : Operation(Type::conv2D, {input, kernel})
- {
- _attributes.strides = strides;
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.data_format = data_format;
-
- inferOutputShapes();
- }
-
Conv2DOp(Output *input, Output *kernel, const Conv2DOpAttributes &attributes)
: Operation(Type::conv2D, {input, kernel}), _attributes(attributes)
{
class DeConv2DOp : public Operation
{
public:
- DeConv2DOp(Output *input, Output *kernel, const std::vector<std::int32_t> &strides,
- const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, DataFormat data_format)
- : Operation(Type::deConv2D, {input, kernel})
- {
- _attributes.strides = strides;
- _attributes.padding_type = PaddingType::Explicit;
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.data_format = data_format;
-
- inferOutputShapes();
- }
-
- DeConv2DOp(Output *input, Output *kernel, const std::vector<std::int32_t> &strides,
- PaddingType padding_type, const Shape &output_shape, DataFormat data_format)
- : Operation(Type::deConv2D, {input, kernel})
- {
- _attributes.strides = strides;
- _attributes.padding_type = padding_type;
- _attributes.data_format = data_format;
-
- setOutputShape(0, output_shape);
- inferPaddings();
- }
-
DeConv2DOp(Output *input, Output *kernel, const Deconv2DOpAttributes &attributes)
: Operation(Type::deConv2D, {input, kernel}), _attributes(attributes)
{
class DepthwiseConv2DOp : public Operation
{
public:
- DepthwiseConv2DOp(Output *input, Output *kernel, const std::vector<std::int32_t> &strides,
- const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, DataFormat data_format)
- : Operation(Type::depthwiseConv, {input, kernel})
- {
- _attributes.strides = strides;
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.data_format = data_format;
-
- inferOutputShapes();
- }
-
DepthwiseConv2DOp(Output *input, Output *kernel, const Conv2DOpAttributes &attributes)
: Operation(Type::depthwiseConv, {input, kernel}), _attributes(attributes)
{
class MaxPool2DOp : public Operation
{
public:
- MaxPool2DOp(Output *arg, const std::vector<std::int32_t> &window_size,
- const std::vector<std::int32_t> &strides,
- const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, DataFormat data_format)
- : Operation(Type::maxPool2D, {arg})
- {
- _attributes.window = window_size;
- _attributes.strides = strides;
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.data_format = data_format;
-
- inferOutputShapes();
- }
-
MaxPool2DOp(Output *arg, const MaxPool2DOpAttributes &attributes)
: Operation(Type::maxPool2D, {arg}), _attributes(attributes)
{
class PadOp : public Operation
{
public:
- /// @param arg The tensor to be padded.
- /// @param padding_before The padding to be added before the tensor.
- /// @param padding_after The padding to be added after the tensor.
- /// @param padding_value The value to be used for padding.
- PadOp(Output *arg, const std::vector<std::int32_t> &padding_before,
- const std::vector<std::int32_t> &padding_after, float padding_value)
- : Operation(Type::pad, {arg})
- {
- _attributes.padding_before = padding_before;
- _attributes.padding_after = padding_after;
- _attributes.padding_value = padding_value;
-
- assert(_attributes.padding_before.size() == _attributes.padding_after.size());
- inferOutputShapes();
- }
-
PadOp(Output *arg, const PadOpAttributes &attributes)
: Operation(Type::pad, {arg}), _attributes(attributes)
{