-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Added bilinear and nearest interp v2 oneDNN FP32 kernels #32312
Conversation
Thanks for your contribution! |
@lidanqing-intel @jczaja @wozna Could you please review this PR? |
auto scale_data = get_new_data_from_tensor<float>(scale_tensor); | ||
std::copy(scale_data.begin(), scale_data.end(), scales.begin()); | ||
while (scale_data.size() < 3) scales.push_back(scale_data[0]); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Is this else branch only part that is different from interpolate_mkldnn_v1?
Maybe function std::is_same
for type comparison could be used for this case and we could combine interpolate v1 and v2?
@@ -0,0 +1,210 @@ | |||
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
year 2021
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
OPs
Describe
Added oneDNN FP32 kernels for nearest_interp_v2 and bilinear_interp_v2