You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/paddle/sparse/nn/layer/conv.py
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,7 @@ def extra_repr(self):
238
238
239
239
classConv3D(_Conv3D):
240
240
r"""
241
-
**Sparse Convlution3d Layer**
241
+
**Sparse Convolution3d Layer**
242
242
The Sparse convolution3d layer calculates the output based on the input, filter
243
243
and strides, paddings, dilations, groups parameters. Input(Input) and
244
244
Output(Output) are multidimensional SparseCooTensors with a shape of
@@ -267,11 +267,11 @@ class Conv3D(_Conv3D):
267
267
stride(int|list|tuple, optional): The stride size. If stride is a list/tuple, it must
268
268
contain three integers, (stride_D, stride_H, stride_W). Otherwise, the
269
269
stride_D = stride_H = stride_W = stride. The default value is 1.
270
-
padding(int|str|tuple|list, optional): The padding size. Padding coule be in one of the following forms.
270
+
padding(int|str|tuple|list, optional): The padding size. Padding couple be in one of the following forms.
271
271
1. a string in ['valid', 'same'].
272
-
2. an int, which means each spartial dimension(depth, height, width) is zero paded by size of `padding`
273
-
3. a list[int] or tuple[int] whose length is the number of spartial dimensions, which contains the amount of padding on each side for each spartial dimension. It has the form [pad_d1, pad_d2, ...].
274
-
4. a list[int] or tuple[int] whose length is 2 * number of spartial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spartial dimensions.
272
+
2. an int, which means each spatial dimension(depth, height, width) is zero padded by size of `padding`
273
+
3. a list[int] or tuple[int] whose length is the number of spatial dimensions, which contains the amount of padding on each side for each spatial dimension. It has the form [pad_d1, pad_d2, ...].
274
+
4. a list[int] or tuple[int] whose length is 2 * number of spatial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spatial dimensions.
275
275
5. a list or tuple of pairs of ints. It has the form [[pad_before, pad_after], [pad_before, pad_after], ...]. Note that, the batch dimension and channel dimension are also included. Each pair of integers correspond to the amount of padding for a dimension of the input. Padding in batch dimension and channel dimension should be [0, 0] or (0, 0).
276
276
The default value is 0.
277
277
dilation(int|list|tuple, optional): The dilation size. If dilation is a list/tuple, it must
@@ -373,7 +373,7 @@ def __init__(
373
373
374
374
classConv2D(_Conv2D):
375
375
r"""
376
-
**Sparse Convlution2d Layer**
376
+
**Sparse Convolution2d Layer**
377
377
378
378
The Sparse convolution2d layer calculates the output based on the input, filter
379
379
and strides, paddings, dilations, groups parameters. Input(Input) and
@@ -403,12 +403,12 @@ class Conv2D(_Conv2D):
403
403
stride(int|list|tuple, optional): The stride size. If stride is a list/tuple, it must
404
404
contain three integers, (stride_H, stride_W). Otherwise, the
405
405
stride_H = stride_W = stride. The default value is 1.
406
-
padding(int|str|tuple|list, optional): The padding size. Padding coule be in one of the following forms.
406
+
padding(int|str|tuple|list, optional): The padding size. Padding couple be in one of the following forms.
407
407
408
408
1. a string in ['valid', 'same'].
409
-
2. an int, which means each spartial dimension(height, width) is zero paded by size of `padding`
410
-
3. a list[int] or tuple[int] whose length is the number of spartial dimensions, which contains the amount of padding on each side for each spartial dimension. It has the form [pad_d1, pad_d2, ...].
411
-
4. a list[int] or tuple[int] whose length is 2 * number of spartial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spartial dimensions.
409
+
2. an int, which means each spatial dimension(height, width) is zero padded by size of `padding`
410
+
3. a list[int] or tuple[int] whose length is the number of spatial dimensions, which contains the amount of padding on each side for each spatial dimension. It has the form [pad_d1, pad_d2, ...].
411
+
4. a list[int] or tuple[int] whose length is 2 * number of spatial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spatial dimensions.
412
412
5. a list or tuple of pairs of ints. It has the form [[pad_before, pad_after], [pad_before, pad_after], ...].
413
413
414
414
Note that, the batch dimension and channel dimension are also included. Each pair of integers correspond to the amount of padding for a dimension of the input. Padding in batch dimension and channel dimension should be [0, 0] or (0, 0).
@@ -508,7 +508,7 @@ def __init__(
508
508
509
509
classSubmConv3D(_Conv3D):
510
510
r"""
511
-
**Submanifold Sparse Convlution3d Layer**
511
+
**Submanifold Sparse Convolution3d Layer**
512
512
The submanifold sparse convolution3d layer calculates the output based on the input, filter
513
513
and strides, paddings, dilations, groups parameters. Input(Input) and
514
514
Output(Output) are multidimensional SparseCooTensors with a shape of
@@ -537,11 +537,11 @@ class SubmConv3D(_Conv3D):
537
537
stride(int|list|tuple, optional): The stride size. If stride is a list/tuple, it must
538
538
contain three integers, (stride_D, stride_H, stride_W). Otherwise, the
539
539
stride_D = stride_H = stride_W = stride. The default value is 1.
540
-
padding(int|str|tuple|list, optional): The padding size. Padding coule be in one of the following forms.
540
+
padding(int|str|tuple|list, optional): The padding size. Padding couple be in one of the following forms.
541
541
1. a string in ['valid', 'same'].
542
-
2. an int, which means each spartial dimension(depth, height, width) is zero paded by size of `padding`
543
-
3. a list[int] or tuple[int] whose length is the number of spartial dimensions, which contains the amount of padding on each side for each spartial dimension. It has the form [pad_d1, pad_d2, ...].
544
-
4. a list[int] or tuple[int] whose length is 2 * number of spartial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spartial dimensions.
542
+
2. an int, which means each spatial dimension(depth, height, width) is zero padded by size of `padding`
543
+
3. a list[int] or tuple[int] whose length is the number of spatial dimensions, which contains the amount of padding on each side for each spatial dimension. It has the form [pad_d1, pad_d2, ...].
544
+
4. a list[int] or tuple[int] whose length is 2 * number of spatial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spatial dimensions.
545
545
5. a list or tuple of pairs of ints. It has the form [[pad_before, pad_after], [pad_before, pad_after], ...]. Note that, the batch dimension and channel dimension are also included. Each pair of integers correspond to the amount of padding for a dimension of the input. Padding in batch dimension and channel dimension should be [0, 0] or (0, 0).
546
546
The default value is 0.
547
547
dilation(int|list|tuple, optional): The dilation size. If dilation is a list/tuple, it must
@@ -648,7 +648,7 @@ def __init__(
648
648
649
649
classSubmConv2D(_Conv2D):
650
650
r"""
651
-
**Submanifold Sparse Convlution2d Layer**
651
+
**Submanifold Sparse Convolution2d Layer**
652
652
653
653
The submanifold sparse convolution2d layer calculates the output based on the input, filter
654
654
and strides, paddings, dilations, groups parameters. Input(Input) and
@@ -678,12 +678,12 @@ class SubmConv2D(_Conv2D):
678
678
stride(int|list|tuple, optional): The stride size. If stride is a list/tuple, it must
679
679
contain two integers, (stride_H, stride_W). Otherwise, the
680
680
stride_H = stride_W = stride. The default value is 1.
681
-
padding(int|str|tuple|list, optional): The padding size. Padding coule be in one of the following forms.
681
+
padding(int|str|tuple|list, optional): The padding size. Padding couple be in one of the following forms.
682
682
683
683
1. a string in ['valid', 'same'].
684
-
2. an int, which means each spartial dimension(depth, height, width) is zero paded by size of `padding`
685
-
3. a list[int] or tuple[int] whose length is the number of spartial dimensions, which contains the amount of padding on each side for each spartial dimension. It has the form [pad_d1, pad_d2, ...].
686
-
4. a list[int] or tuple[int] whose length is 2 * number of spartial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spartial dimensions.
684
+
2. an int, which means each spatial dimension(depth, height, width) is zero padded by size of `padding`
685
+
3. a list[int] or tuple[int] whose length is the number of spatial dimensions, which contains the amount of padding on each side for each spatial dimension. It has the form [pad_d1, pad_d2, ...].
686
+
4. a list[int] or tuple[int] whose length is 2 * number of spatial dimensions. It has the form [pad_before, pad_after, pad_before, pad_after, ...] for all spatial dimensions.
687
687
5. a list or tuple of pairs of ints. It has the form [[pad_before, pad_after], [pad_before, pad_after], ...].
688
688
689
689
Note that, the batch dimension and channel dimension are also included. Each pair of integers correspond to the amount of padding for a dimension of the input. Padding in batch dimension and channel dimension should be [0, 0] or (0, 0).
0 commit comments