///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
-#include "../C/crop.h"
#include "primitive.hpp"
namespace cldnn {
/// @n - Sum of sizes of opposite borders must be lower than input size (on all non-ignored dimensions).
/// @n
/// @n Breaking any of this conditions will cause exception throw.
-struct crop : public primitive_base<crop, CLDNN_PRIMITIVE_DESC(crop)> {
+struct crop : public primitive_base<crop> {
CLDNN_DECLARE_PRIMITIVE(crop)
/// @brief Constructs crop primitive.
const padding& output_padding = padding())
: primitive_base(id, {input}, output_padding), reference_input(xy_borders.negate()), offsets(xy_borders) {}
- /// @brief Constructs a copy from C API @CLDNN_PRIMITIVE_DESC{crop}
- crop(const dto* dto) : primitive_base(dto), reference_input(dto->reference_input), offsets(dto->offsets) {}
-
/// @brief Reference input tensor with the required dimensions.
tensor reference_input;
/// @brief Input offsets.
tensor offsets;
-
-protected:
- void update_dto(dto& dto) const override {
- dto.reference_input = reference_input;
- dto.offsets = offsets;
- }
};
/// @}
/// @}