namespace ov::op::interpolate::validate

Overview

namespace validate {

// global functions

template <class TShape>
void input_rank_1d(
    const Node \*const op,
    const std::vector<TShape>& shapes,
    size_t port
    );

template <class TShape>
void are_inputs_except_first_1d(
    const Node \*const op,
    const std::vector<TShape>& shapes
    );

template <class TContainer>
void axes_values(
    const Node \*const op,
    const TContainer& axes,
    size_t rank
    );

void input_elements_num(
    const Node \*const op,
    const std::string& input_name,
    size_t element_count,
    size_t exp_count
    );

} // namespace validate

Detailed Documentation

Global Functions

template <class TShape>
void input_rank_1d(
    const Node \*const op,
    const std::vector<TShape>& shapes,
    size_t port
    )

Validates that input at port number from is 1-D rank.

Parameters:

TShape

op

Pointer to operator.

shapes

Vector of op’s input shapes.

port

Port number.

template <class TShape>
void are_inputs_except_first_1d(
    const Node \*const op,
    const std::vector<TShape>& shapes
    )

Validates that inputs from 2nd to last are compatible 1-D rank.

Parameters:

TShape

op

Pointer to operator.

shapes

Vector of op’s input shapes.

template <class TContainer>
void axes_values(
    const Node \*const op,
    const TContainer& axes,
    size_t rank
    )

Check if axes values in range [0,rank].

Parameters:

TContainer

Type of axes container.

op

Pointer to operator.

axes

Container with axes to check.

rank

Maximum value for axes values.

void input_elements_num(
    const Node \*const op,
    const std::string& input_name,
    size_t element_count,
    size_t exp_count
    )

Check if number of elements in input is same as expected.

Parameters:

op

Pointer to operator.

input_name

Input name.

element_count

Element count in tested input.

exp_count

Expected element count on tested input.