Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Add dilate and bn_kwargs to Bottleneck and ResBlock #549

Merged
merged 4 commits into from
Apr 1, 2018

Conversation

yuyu2172
Copy link
Member

Related #388 (comment)

@yuyu2172 yuyu2172 added this to the v0.9 milestone Mar 27, 2018
@yuyu2172
Copy link
Member Author

@Hakuyume
Can you check this?
This depends on other PRs.

@@ -17,8 +17,12 @@ class ResBlock(PickableSequentialChain):
mid_channels (int): The number of channels of intermediate arrays.
out_channels (int): The number of channels of the output array.
stride (int or tuple of ints): Stride of filter application.
dilate (int or pair of ints): Dilation factor of filter applications.
Copy link
Member

Choose a reason for hiding this comment

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

You use tuple of ints in stride and pair of ints in dilate. If there is no difference, I prefer tuple of ints.

Copy link
Member Author

@yuyu2172 yuyu2172 Mar 31, 2018

Choose a reason for hiding this comment

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

Isn't pair of ints more informative?
This is used in Conv2DBNActiv.

I greped, and both descriptions are used in the library.

Copy link
Member Author

Choose a reason for hiding this comment

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

Chainer uses tuple of ints, so I changed the doc to follow that.

@@ -17,8 +17,12 @@ class ResBlock(PickableSequentialChain):
mid_channels (int): The number of channels of intermediate arrays.
out_channels (int): The number of channels of the output array.
stride (int or tuple of ints): Stride of filter application.
dilate (int or pair of ints): Dilation factor of filter applications.
:obj:`dilate=d` and :obj:`dilate=(d, d)` are equivalent.
initialW (4-D array): Initial weight value used in
Copy link
Member

Choose a reason for hiding this comment

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

initialW should be callable or initializer. (4-D array) is not good.

Copy link
Member

@Hakuyume Hakuyume left a comment

Choose a reason for hiding this comment

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

LGTM

@Hakuyume Hakuyume merged commit 841d01e into chainer:master Apr 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants