未验证 提交 1b121773 编写于 作者: B Bai Yifan 提交者: GitHub

fix deform_conv2d doc, test=document_fix (#27873)

上级 91455804
...@@ -229,7 +229,7 @@ def deform_conv2d(x, ...@@ -229,7 +229,7 @@ def deform_conv2d(x,
float32, float64. float32, float64.
offset (Tensor): The input coordinate offset of deformable convolution layer. offset (Tensor): The input coordinate offset of deformable convolution layer.
A Tensor with type float32, float64. A Tensor with type float32, float64.
Mask (Tensor, Optional): The input mask of deformable convolution layer. mask (Tensor, Optional): The input mask of deformable convolution layer.
A Tensor with type float32, float64. It should be None when you use A Tensor with type float32, float64. It should be None when you use
deformable convolution v1. deformable convolution v1.
num_filters(int): The number of filter. It is as same as the output num_filters(int): The number of filter. It is as same as the output
...@@ -237,23 +237,23 @@ def deform_conv2d(x, ...@@ -237,23 +237,23 @@ def deform_conv2d(x,
filter_size (int|tuple): The filter size. If filter_size is a tuple, filter_size (int|tuple): The filter size. If filter_size is a tuple,
it must contain two integers, (filter_size_H, filter_size_W). it must contain two integers, (filter_size_H, filter_size_W).
Otherwise, the filter will be a square. Otherwise, the filter will be a square.
stride (int|tuple): The stride size. If stride is a tuple, it must stride (int|tuple, Optional): The stride size. If stride is a tuple, it must
contain two integers, (stride_H, stride_W). Otherwise, the contain two integers, (stride_H, stride_W). Otherwise, the
stride_H = stride_W = stride. Default: stride = 1. stride_H = stride_W = stride. Default: stride = 1.
padding (int|tuple): The padding size. If padding is a tuple, it must padding (int|tuple, Optional): The padding size. If padding is a tuple, it must
contain two integers, (padding_H, padding_W). Otherwise, the contain two integers, (padding_H, padding_W). Otherwise, the
padding_H = padding_W = padding. Default: padding = 0. padding_H = padding_W = padding. Default: padding = 0.
dilation (int|tuple): The dilation size. If dilation is a tuple, it must dilation (int|tuple, Optional): The dilation size. If dilation is a tuple, it must
contain two integers, (dilation_H, dilation_W). Otherwise, the contain two integers, (dilation_H, dilation_W). Otherwise, the
dilation_H = dilation_W = dilation. Default: dilation = 1. dilation_H = dilation_W = dilation. Default: dilation = 1.
groups (int): The groups number of the deformable conv layer. According to groups (int, Optional): The groups number of the deformable conv layer. According to
grouped convolution in Alex Krizhevsky's Deep CNN paper: when group=2, grouped convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
the first half of the filters is only connected to the first half the first half of the filters is only connected to the first half
of the input channels, while the second half of the filters is only of the input channels, while the second half of the filters is only
connected to the second half of the input channels. Default: groups=1. connected to the second half of the input channels. Default: groups=1.
deformable_groups (int): The number of deformable group partitions. deformable_groups (int, Optional): The number of deformable group partitions.
Default: deformable_groups = 1. Default: deformable_groups = 1.
im2col_step (int): Maximum number of images per im2col computation; im2col_step (int, Optional): Maximum number of images per im2col computation;
The total batch size should be devisable by this value or smaller The total batch size should be devisable by this value or smaller
than this value; if you face out of memory problem, you can try than this value; if you face out of memory problem, you can try
to use a smaller value here. to use a smaller value here.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册