-
Notifications
You must be signed in to change notification settings - Fork 303
Add dilate and bn_kwargs to Bottleneck and ResBlock #549
Conversation
@Hakuyume |
@@ -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. |
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.
You use tuple of ints
in stride
and pair of ints
in dilate
. If there is no difference, I prefer tuple of ints
.
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.
Isn't pair of ints
more informative?
This is used in Conv2DBNActiv
.
I greped, and both descriptions are used in the library.
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.
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 |
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.
initialW
should be callable
or initializer
. (4-D array)
is not good.
b18bee2
to
2dfaca3
Compare
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
Related #388 (comment)