Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #23553: [OP CONFORMANCE][TEMPLATE] Interpolate test fails in op c… #23636

Closed
wants to merge 15 commits into from
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,19 @@ void InterpolateEval<T>::linear_onnx_func(const T* input_data, T* out) {
if (input_rank >= 4) {
std::vector<int64_t> all_axes;
std::vector<int64_t> axes_without_batch_and_channels;
std::vector<int64_t> axes_without_batch_and_channels_last;
all_axes.push_back(0);
all_axes.push_back(1);
all_axes.push_back(1);
mlukasze marked this conversation as resolved.
Show resolved Hide resolved
for (int64_t i = 2; i < static_cast<int64_t>(input_rank); ++i) {
all_axes.push_back(i);
axes_without_batch_and_channels.push_back(i);
if(i != static_cast<int64_t>(input_rank)-1) axes_without_batch_and_channels_last.push_back(i);
}

correct_axes = ((num_of_axes == input_rank) && (m_axes == all_axes)) ||
((num_of_axes == input_rank - 2) && (m_axes == axes_without_batch_and_channels));
((num_of_axes == input_rank - 2) && (m_axes == axes_without_batch_and_channels)) ||
((num_of_axes == input_rank - 2) && (m_axes == axes_without_batch_and_channels_last));
praasz marked this conversation as resolved.
Show resolved Hide resolved
}

if (!correct_axes)
Expand Down
Loading