-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TOPI] implement pool3d op #4478
Conversation
@optima2005 I am traveling for another few days, will review afte I am back. |
thanks @optima2005 this is merged. |
* [TOPI] implement pool3d op * use PoolInferCorrectLayout for both 2d and 3d pooling * unify MakeMaxPool and MakeAvgPool
* [TOPI] implement pool3d op * use PoolInferCorrectLayout for both 2d and 3d pooling * unify MakeMaxPool and MakeAvgPool
Hi @optima2005 , @masahi , Best Regards, |
Hi, @deepakbabel |
Hi @optima2005 , |
@optima2005 - Best Regards, |
@deepakbabel, If I would implement 3D pooling TF frontend, I would create a new function by following the current 2D pooling function. And add it to the converting map for TF 3D pooling transformation. By this approach, the original 2d pooling won't be impacted and we won't handle too much conditionals in one function. |
@optima2005 : Thank you for the suggestion. I actually have done the same(seperate function for 3dpooling) in tensorflow.py file(Frontend support). Also added test cases in test_forward.py to test it. Thank you for your inputs. In test_forward.py(for Tensorflow Front-end), I could see that while creating the TVM Graph, they use "NCHW" layout by-default and currently there is no option to pass the "NCDHW" layout information in the same file. So, I guess we might have to set the layout from somewhere else(may be tensorflow.py in the new function for 3d pooling?), otherwise it will require design changes in existing test_forward.py file. Best Regards, |
} else if (param->padding.size() == 6) { | ||
// (front, top, left, back, bottom, right) | ||
pad_d = param->padding[0] + param->padding[3]; | ||
pad_h = param->padding[1] + param->padding[4]; |
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.
pad_d
and pad_h
are not used. The fix is here #4738 @optima2005 @masahi
This is a part of attempts to implement #4009
The implemation in this PR is for max and avg 3d pooling.
@masahi