-
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
[TensorFlow] Fix limitation that depth_mult can only be 1 for DepthwiseConv2dNative #3676
Conversation
@srkreddy1238 please help manage the PR |
When this PR merged, I could support tflite frontend. |
ping @srkreddy1238 , @kazum can you also please help to take a look? |
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.
Overall, it looks good to me. I added some comments for better code readability.
python/tvm/relay/op/nn/_nn.py
Outdated
@@ -129,19 +129,20 @@ def compute_conv2d(attrs, inputs, out_type, target): | |||
if dilation_h < 1 or dilation_w < 1: | |||
raise ValueError("dilation should be positive value") | |||
|
|||
def _get_channels(): |
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.
Is _get_out_depth() better because the returned value makes sense only for depthwise convolution?
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.
updated
@tqchen Could you help to merge this? Thanks |
Thanks @lixiaoquan @kazum ! |
…seConv2dNative (apache#3676) * [TensorFlow] Fix limitation that depth_mult can only be 1 for DepthwiseConv2dNative * Improve code readability
…seConv2dNative (apache#3676) * [TensorFlow] Fix limitation that depth_mult can only be 1 for DepthwiseConv2dNative * Improve code readability
…seConv2dNative (apache#3676) * [TensorFlow] Fix limitation that depth_mult can only be 1 for DepthwiseConv2dNative * Improve code readability
@srkreddy1238 @yongwww Please review this