namespace ov::reference¶
Overview¶
namespace reference {
// global functions
template <typename T>
void group_normalization(
const T \*const data,
const T \*const scale,
const T \*const bias,
T \*const out,
const Shape& data_shape,
const size_t num_groups,
const double epsilon
);
template <typename T>
T round_to_nearest_even(T value);
template <typename T>
T round_half_away_zero(T value);
template <
typename T,
typename std::enable_if<ov::is_floating_point<T>()>::type \* = nullptr
>
void round(
const T \* arg,
T \* out,
const size_t count,
const op::v5::Round::RoundMode mode
);
} // namespace reference
Detailed Documentation¶
Global Functions¶
template <typename T>
T round_to_nearest_even(T value)
Rounding algorithm for ov::op::v5::Round::RoundMode::HALF_TO_EVEN.
Parameters:
T |
Value type. |
value |
Value for rounding. |
Returns:
Rounded value.
template <typename T>
T round_half_away_zero(T value)
Rounding algorithm for ov::op::v5::Round::RoundMode::HALF_AWAY_FROM_ZERO.
Parameters:
T |
Value type. |
value |
Value for rounding. |
Returns:
Rounded value.
template <
typename T,
typename std::enable_if<ov::is_floating_point<T>()>::type \* = nullptr
>
void round(
const T \* arg,
T \* out,
const size_t count,
const op::v5::Round::RoundMode mode
)
Reference implementation of Round operator.
Used when T is OpenVINO floating type.
Used when T is OpenVINO integral type.
Parameters:
arg |
Input buffer pointer with data to round. |
out |
Output buffer pointer with rounded results. |
count |
Number of elements in input tensor. |
mode |
Rounding mode. |
arg |
Input buffer pointer with data to round. |
out |
Output buffer pointer with rounded results. |
count |
Number of elements in input tensor. |
mode |
Rounding mode. |