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

Make cudnn convolution layer and projection support for dilation #3629

Merged
merged 7 commits into from
Aug 24, 2017

Conversation

wanghaoshuang
Copy link
Contributor

@wanghaoshuang wanghaoshuang commented Aug 23, 2017

fix #3628

@qingqing01 qingqing01 requested a review from pkuyym August 23, 2017 05:38
mode,
data_type));
#else
if (dilation_h > 1 || dilation_w > 1) {
LOG(FATAL)
<< "Current cudnn version does't support for dilation convolution.";
Copy link
Contributor

Choose a reason for hiding this comment

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

"Current cuDNN version does't support for dilation convolution. The dilation convolution requires cuDNN >= v6.0."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

testProjectionConv(1, true);
testProjectionConv(3, true);
/// testProjectionConv(1, true);
/// testProjectionConv(3, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -870,12 +871,15 @@ def __init__(self,
caffe_mode=True,
filter_size_y=None,
padding_y=None,
dilation_y=None,
stride_y=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to move dilation=None and dilation_y=None to last line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

dilation_y = dilation

if dilation > 1 or dilation_y > 1:
assert layer_type in ["cudnn_conv", "cudnn_convt"]
Copy link
Contributor

Choose a reason for hiding this comment

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

If the layer_type =None, this line will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -2340,13 +2340,15 @@ def img_conv_layer(input,
groups=1,
stride=1,
padding=0,
dilation=0,
Copy link
Contributor

Choose a reason for hiding this comment

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

1 by defalut.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@wanghaoshuang wanghaoshuang merged commit e5cbeb0 into PaddlePaddle:develop Aug 24, 2017
@wanghaoshuang wanghaoshuang deleted the dilate_conv branch August 24, 2017 07:43
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 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.

Make cudnn convolution layer and projection support for dilation
2 participants