Class ov::op::util::InterpolateBase#

class InterpolateBase : public ov::op::Op#

Subclassed by ov::op::v11::Interpolate, ov::op::v4::Interpolate

Public Types

enum class ShapeCalcMode#

PartialShape calculation mode.

SIZES - output shape for interpolated axes is calculated using input sizes SCALES - output shape for interpolated axes is calculated using input scales

Values:

enumerator SIZES#
enumerator SCALES#
enum class InterpolateMode#

Interpolation mode.

NEAREST - nearest interpolation LINEAR - linear interpolation as in TensorFlow LINEAR_ONNX - linear interpolation as in ONNX CUBIC - cubic interpolation BILINEAR_PILLOW - bilinear interpolation as in Pillow BICUBIC_PILLOW - bicubic interpolation as in Pillow

Values:

enumerator NEAREST#
enumerator LINEAR#
enumerator LINEAR_ONNX#
enumerator CUBIC#
enumerator BILINEAR_PILLOW#
enumerator BICUBIC_PILLOW#
enum class CoordinateTransformMode#

Mode of the calculation of the source coordinate from resized one.

These modes are modes from ONNXRuntime.

Values:

enumerator HALF_PIXEL#
enumerator PYTORCH_HALF_PIXEL#
enumerator ASYMMETRIC#
enumerator TF_HALF_PIXEL_FOR_NN#
enumerator ALIGN_CORNERS#
enum class NearestMode#

Rounding modes for the NEAREST interpolation.

Values:

enumerator ROUND_PREFER_FLOOR#
enumerator ROUND_PREFER_CEIL#
enumerator FLOOR#
enumerator CEIL#
enumerator SIMPLE#

Public Functions

virtual void validate_and_infer_types() override#

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.

struct InterpolateAttrs#