|
| crop (const primitive_id &id, const primitive_id &input, const tensor &reference_input, const tensor &offsets, const padding &output_padding=padding()) |
| Constructs crop primitive. More...
|
|
| crop (const dto *dto) |
| Constructs a copy from C API cldnn_crop_desc.
|
|
const cldnn_primitive_desc * | get_dto () const override |
| Returns pointer to a C API primitive descriptor casted to cldnn_primitive_desc.
|
|
| primitive (const primitive_type_id &type, const primitive_id &id, const std::vector< primitive_id > &input, const padding &output_padding=padding()) |
|
| primitive (const cldnn_primitive_desc *dto) |
| Constructs a copy from basic C API cldnn_primitive_desc.
|
|
std::vector< std::reference_wrapper< primitive_id > > | dependecies () |
| Returns references to all primitive ids on which this primitive depends - inputs, weights, biases, etc.
|
|
std::vector< primitive_id > | dependecies () const |
| Returns copy of all primitive ids on which this primitive depends - inputs, weights, biases, etc.
|
|
| operator primitive_id () const |
| Implicit conversion to primiitive id.
|
|
Performs crop operation on input.
Crops the input to the shape of reference_input accross all dimensions taking into account specified input offsets.
Examples
Crop without offset example:
Crop with offset example:
Requirements
- Input and reference format has to be same
- Input, reference and offset layout (order) has to be the same
- Input size cannot be greater than reference size in any dimension
- All sizes have to have positive numbers
- Reference size plus offset cannot exceed input size
Breaking any of this conditions will cause exeption throw.
Definition at line 47 of file crop.hpp.