-
Notifications
You must be signed in to change notification settings - Fork 1.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
[arm] optimize fp16 bilinear_interp for upsample #9447
Conversation
@@ -276,6 +280,39 @@ TEST(TesPoolGlobal, test_pool_fp16_global) { | |||
} | |||
#endif // global_pool | |||
|
|||
#if 1 // basic adaptive |
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.
看起来没有作用
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.
建议删掉
@@ -88,6 +141,19 @@ void pooling_basic_fp16(POOLING_PARAM, | |||
int pad_w = paddings[2]; | |||
int size_channel_in = win * hin; | |||
int size_channel_out = wout * hout; | |||
|
|||
if (exclusive && adaptive && pad_h == 0 && pad_w == 0 && hin % hout == 0 && | |||
win % wout == 0 && pooling_type == "avg" && global_pooling == false) { |
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.
global_pooling == false
--> !global_pooling
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
No description provided.