Skip to content

Commit

Permalink
Fix backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno committed Aug 18, 2017
1 parent b9b12f9 commit dbbf496
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chainer/functions/activation/tree_lstm.py
Expand Up @@ -198,7 +198,7 @@ def tree_lstm(*inputs):
This function implements TreeLSTM units both for
N-ary TreeLSTM and Child-Sum TreeLSTM.
Let the children cell states
:math:`c_{\\text{1}}, c_{\\text{2}}, \dots, c_{\\text{N}}`,
:math:`c_{\\text{1}}, c_{\\text{2}}, \\dots, c_{\\text{N}}`,
and the incoming signal :math:`x`.
First, the incoming signal :math:`x` is split into (3 + N) arrays
Expand Down
4 changes: 2 additions & 2 deletions chainer/functions/connection/convolution_nd.py
Expand Up @@ -302,7 +302,7 @@ def convolution_nd(x, W, b=None, stride=1, pad=0, cover_all=False):
.. math::
l_n = (d_n + 2p_n - k_n) / s_n + 1 \ \ (n = 1, ..., N)
l_n = (d_n + 2p_n - k_n) / s_n + 1 \\ \\ (n = 1, ..., N)
If ``cover_all`` option is ``True``, the filter will cover the all
spatial locations. So, if the last stride of filter does not cover the
Expand All @@ -312,7 +312,7 @@ def convolution_nd(x, W, b=None, stride=1, pad=0, cover_all=False):
.. math::
l_n = (d_n + 2p_n - k_n + s_n - 1) / s_n + 1 \ \ (n = 1, ..., N)
l_n = (d_n + 2p_n - k_n + s_n - 1) / s_n + 1 \\ \\ (n = 1, ..., N)
The N-dimensional convolution function is defined as follows.
Expand Down
5 changes: 3 additions & 2 deletions chainer/functions/connection/deconvolution_nd.py
Expand Up @@ -313,15 +313,16 @@ def deconvolution_nd(x, W, b=None, stride=1, pad=0, outsize=None):
.. math::
l_n = s_n (d_n - 1) + k_n - 2 p_n \ \ (n = 1, ..., N)
l_n = s_n (d_n - 1) + k_n - 2 p_n \\ \\ (n = 1, ..., N)
If ``outsize`` option is given, the output size is determined by
``outsize``. In this case, the ``outsize`` :math:`(l_1, l_2, ..., l_N)`
must satisfy the following equations:
.. math::
d_n = \\lfloor (l_n + 2p_n - k_n) / s_n \\rfloor + 1 \ \ (n = 1, ..., N)
d_n = \\lfloor (l_n + 2p_n - k_n) / s_n \\rfloor + 1 \\ \\ \
(n = 1, ..., N)
Args:
x (:class:`~chainer.Variable` or :class:`numpy.ndarray` or \
Expand Down
3 changes: 2 additions & 1 deletion chainer/functions/loss/vae.py
Expand Up @@ -65,7 +65,8 @@ def bernoulli_nll(x, y, reduce='sum'):
.. math::
-\\log B(x; p) = -\\sum_i \{x_i \\log(p_i) + (1 - x_i)\\log(1 - p_i)\},
-\\log B(x; p) = -\\sum_i \\{x_i \\log(p_i) + \
(1 - x_i)\\log(1 - p_i)\\},
where :math:`p = \\sigma(y)`, :math:`\\sigma(\\cdot)` is a sigmoid
function, and :math:`B(x; p)` is a Bernoulli distribution.
Expand Down
4 changes: 2 additions & 2 deletions chainer/training/extensions/parameter_statistics.py
Expand Up @@ -10,8 +10,8 @@ class ParameterStatistics(extension.Extension):
"""Trainer extension to report parameter statistics.
Statistics are collected and reported for a given :class:`~chainer.Link`
or an iterable of :class:`~chainer.Link`\s. If a link contains child links,
the statistics are reported separately for each child.
or an iterable of :class:`~chainer.Link`\\s. If a link contains child
links, the statistics are reported separately for each child.
Any function that takes a one-dimensional :class:`numpy.ndarray` or a
:class:`cupy.ndarray` and outputs a single or multiple real numbers can be
Expand Down

0 comments on commit dbbf496

Please sign in to comment.