* Remove default value of `data_format` parameter of conv-like op constructors.
* Rename `CommonProps.h` -> `PaddingType.h`.
* Remove deprecated enum members of `PaddingType`.
Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
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 = DataFormat::NHWC)
+ const std::vector<std::int32_t> &padding_after, DataFormat data_format)
: Operation(Type::conv2D, {input, kernel}), _strides(strides),
_padding_before(padding_before), _padding_after(padding_after), _data_format(data_format)
{
#include "mir/Operation.h"
#include "mir/DataFormat.h"
-#include "mir/ops/CommonProps.h"
+#include "mir/ops/PaddingType.h"
+
+#include <cstdint>
#include <vector>
namespace mir
}
DeConv2DOp(Output *input, Output *kernel, const std::vector<std::int32_t> &strides,
- PaddingType padding_type, const Shape &output_shape,
- DataFormat data_format = DataFormat::NHWC)
+ PaddingType padding_type, const Shape &output_shape, DataFormat data_format)
: Operation(Type::deConv2D, {input, kernel}), _strides(strides), _padding_type(padding_type),
_padding_before(2), _padding_after(2), _data_format(data_format)
{
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 = DataFormat::NHWC)
+ const std::vector<std::int32_t> &padding_after, DataFormat data_format)
: Operation(Type::depthwiseConv, {input, kernel}), _strides(strides),
_padding_before(padding_before), _padding_after(padding_after), _data_format(data_format)
{
Explicit,
Valid,
SameLower,
- SameUpper,
- // TODO Remove as deprecated.
- Same = SameUpper,
- Custom = Explicit
+ SameUpper
};
} // namespace ops
#define _MIR_OPS_SQRT_OP_H_
#include "mir/Operation.h"
-#include "mir/ops/CommonProps.h"
namespace mir
{