Skip to content

Conversation

@TheFormerWalker
Copy link
Contributor

add dtype attribute for gaussian_random op.
add threshold attribute for softplus op.
add data_format attribute for Conv3d/Conv2d op.

@tvm-bot
Copy link
Collaborator

tvm-bot commented May 8, 2023

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
Copy link
Contributor

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

Copy link
Contributor Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be 'NCDHW'

Copy link
Contributor Author

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
Copy link
Contributor

@jiangjiajun jiangjiajun left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jiangjiajun jiangjiajun left a comment

Choose a reason for hiding this comment

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

LGTM

@jiangjiajun
Copy link
Contributor

Hi, @junrushao, Could you help to merge this PR?

@junrushao
Copy link
Member

Hi @jiangjiajun, I am happy to but seems that the linter fails at the moment. Please ping me after the PR passes CI :-)

@jiangjiajun
Copy link
Contributor

@TheFormerWalker

@TheFormerWalker
Copy link
Contributor Author

@jiangjiajun Done.

Copy link
Contributor

@jiangjiajun jiangjiajun left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jiangjiajun jiangjiajun left a 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'
@TheFormerWalker
Copy link
Contributor Author

There are still 4 checks not passed, please fix them, if not related with your pull request, try to trigger the checks again.
@jiangjiajun Done. I‘m sorry that I don't have enough time to fix the gpu CI error of test_forward_gaussian_random, so I delete the part of test_forward_gaussian_random.

jiangjiajun

This comment was marked as duplicate.

Copy link
Contributor

@jiangjiajun jiangjiajun left a 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

@jiangjiajun jiangjiajun merged commit 3dba48b into apache:main Jun 5, 2023
junrushao pushed a commit to junrushao/tvm that referenced this pull request Jun 22, 2023
…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
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.

4 participants