add_docstr_all('unfold',
r"""
-unfold(dim, size, step) -> Tensor
+unfold(dimension, size, step) -> Tensor
Returns a tensor which contains all slices of size :attr:`size` from
-:attr:`self` tensor in the dimension :attr:`dim`.
+:attr:`self` tensor in the dimension :attr:`dimension`.
Step between two slices is given by :attr:`step`.
-If `sizedim` is the size of dimension :attr:`dim` for :attr:`self`, the size of
-dimension :attr:`dim` in the returned tensor will be
+If `sizedim` is the size of dimension :attr:`dimension` for :attr:`self`, the size of
+dimension :attr:`dimension` in the returned tensor will be
`(sizedim - size) / step + 1`.
An additional dimension of size :attr:`size` is appended in the returned tensor.
Args:
- dim (int): dimension in which unfolding happens
+ dimension (int): dimension in which unfolding happens
size (int): the size of each slice that is unfolded
step (int): the step between each slice