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

Add conv_transpose and sigmoid op #13

Merged
merged 7 commits into from
Aug 30, 2021

Conversation

wjj19950828
Copy link

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

Do follow Contributes

1、Add Conv2DTranspose and Sigmoid op
2、Add test cases

class Conv2DTranspose2(nn.Layer):
def __init__(self):
super(Conv2DTranspose2, self).__init__()
self.conv_transpose = nn.Conv2DTranspose(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单测没加入padding为4个元组的情况

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@tvm.testing.uses_gpu
def test_forward_conv_transpose():
# Note we do not test with groups > 1 because that is not supported
# in tvm for conv transpose operations
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TVM不支持groups>1?

Copy link
Author

@wjj19950828 wjj19950828 Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对的,在PyTorch的单测中也有指出这个

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果groups大于1的时候会怎样

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在我将groups设置成3之后跑上述第一个单测会导致维度对不上,如下图
image

@jiangjiajun jiangjiajun merged commit 2cd0430 into jiangjiajun:add_operators Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants