X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inference-engine%2Fthirdparty%2FclDNN%2Fsrc%2Fcrop.cpp;h=b60643b370fad606cde975a1859fc2c9929a8576;hb=0923303e0201c5b59386ab146d0e30b2ef79272d;hp=1a6ee1aecf72a329dfe5c5a9380c5a5e15ca7f2b;hpb=ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf;p=platform%2Fupstream%2Fdldt.git diff --git a/inference-engine/thirdparty/clDNN/src/crop.cpp b/inference-engine/thirdparty/clDNN/src/crop.cpp index 1a6ee1a..b60643b 100644 --- a/inference-engine/thirdparty/clDNN/src/crop.cpp +++ b/inference-engine/thirdparty/clDNN/src/crop.cpp @@ -22,7 +22,7 @@ #include namespace cldnn { -primitive_type_id crop_type_id() { +primitive_type_id crop::type_id() { static primitive_type_base instance; return &instance; } @@ -84,20 +84,10 @@ crop_inst::typed_primitive_inst(network_impl& network, crop_node const& node) : const auto& ref_in_sizes = argument.reference_input; const auto in_layout = node.input().get_output_layout(); const auto& in_sizes = in_layout.size; - const auto in_format = in_layout.format; const auto& offsets = argument.offsets; tensor null_tensor {}; tensor value_tensor { 1, 1, 1, 1, 1 }; - CLDNN_ERROR_NOT_PROPER_FORMAT(node.id(), - "Input format", - in_format.value, - "supported crop input formats", - format::yxfb, - format::bfyx, - format::fyxb, - format::bfzyx); - // Check for borders variant of crop. if (ref_in_sizes.batch[0] < 0 || ref_in_sizes.feature[0] < 0 || ref_in_sizes.spatial[0] < 0 || ref_in_sizes.spatial[1] < 0 || ref_in_sizes.spatial[2] < 0) {