-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Frontend][Paddle] [PaddlePaddle Hackathon 4]add attribute support for gaussian_random/softplus/Conv3d/Conv2d #14801
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
Conversation
[Frontend][Paddle] [PaddlePaddle Hackathon 4]
|
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
| if x*beta <= threshold: | ||
| out = _op.log(_op.exp(x * beta) + _expr.const(1.0, dtype=dtype)) / beta | ||
| else: | ||
| out=x |
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.
Please add test for this attribute
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.
Done
| input_data=input_data, | ||
| ) | ||
| verify_model(Conv3D(stride=2, padding="SAME", dilation=2, groups=3), input_data=input_data) | ||
| verify_model(Conv3D2(stride=2, padding="SAME", dilation=2, groups=3, data_layout='NHWC'), input_data=input_data) |
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.
It should be 'NCDHW'
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.
Done
add test for softplus fix test for Conv3d
jiangjiajun
left a comment
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
jiangjiajun
left a comment
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
|
Hi, @junrushao, Could you help to merge this PR? |
|
Hi @jiangjiajun, I am happy to but seems that the linter fails at the moment. Please ping me after the PR passes CI :-) |
check lint
check lint
check lint
check lint
check lint
check lint
check lint
|
@jiangjiajun Done. |
jiangjiajun
left a comment
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
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 are still 4 checks not passed, please fix them, if not related with your pull request, try to trigger the checks again.
1.module 'paddle.nn.functional' has no attribute 'Softplus',change 'Softplus' to 'softplus' 2.test_forward_conv3d and test_forward_conv2d __init__() got an unexpected keyword argument 'data_layout',change 'data_layout' to 'data_format' 3.test_forward_gaussian_random verify_model() got an unexpected keyword argument 'shape',change 'shape' to 'input_data'
fix gpu CI error
fix gpu CI error
|
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.
Thanks for your contribution. LGTM @junrushao
…r gaussian_random/softplus/Conv3d/Conv2d (apache#14801) * [Frontend][Paddle] [PaddlePaddle Hackathon 4] * Update test_forward.py * Update test_forward.py add test for softplus fix test for Conv3d * Update paddlepaddle.py check lint * Update test_forward.py check lint * Update paddlepaddle.py check lint * Update test_forward.py check lint * Update test_forward.py check lint * Update test_forward.py check lint * Update test_forward.py back * Update test_forward.py check lint * Update test_forward.py lint * trigger check again * fix gpu CI error 1.module 'paddle.nn.functional' has no attribute 'Softplus',change 'Softplus' to 'softplus' 2.test_forward_conv3d and test_forward_conv2d __init__() got an unexpected keyword argument 'data_layout',change 'data_layout' to 'data_format' 3.test_forward_gaussian_random verify_model() got an unexpected keyword argument 'shape',change 'shape' to 'input_data' * fix gpu CI error * fix softplus AssertionError * fix gpu CI error * fix gpu CI error * fix the "dtype" error of gaussian_random * fix gpu CI error of input_data of test_forward_gaussian_random * Update test_forward.py for gaussian_random CI * Update test_forward.py delete test_forward_gaussian_random
add dtype attribute for gaussian_random op.
add threshold attribute for softplus op.
add data_format attribute for Conv3d/Conv2d op.