From 369259311fc93a376dfa7fe786987c766c425bb0 Mon Sep 17 00:00:00 2001 From: Keisuke Umezawa Date: Sun, 6 Aug 2017 10:00:15 +0900 Subject: [PATCH 1/2] just fix small error --- chainer/links/connection/linear.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chainer/links/connection/linear.py b/chainer/links/connection/linear.py index a5d74a53f287..3e48aa6682e8 100644 --- a/chainer/links/connection/linear.py +++ b/chainer/links/connection/linear.py @@ -15,8 +15,8 @@ class Linear(link.Link): The weight matrix ``W`` is initialized with i.i.d. Gaussian samples, each of which has zero mean and deviation :math:`\\sqrt{1/\\text{in_size}}`. The bias vector ``b`` is of size ``out_size``. Each element is initialized with - the ``bias`` value. If ``nobias`` argument is set to True, then this link - does not hold a bias vector. + the ``bias`` value. If ``nobias`` argument is set to ``True``, then this + link does not hold a bias vector. Args: in_size (int or None): Dimension of input vectors. If ``None``, @@ -56,7 +56,7 @@ class Linear(link.Link): (1, 10) 2. Omit ``in_size`` (give the output size only as the first argument) - or fill it with ``None``: + or fill it with ``None``: In this case, the size of second axis of ``x`` is used as the input size. So the below two cases are the same. From d0ac04e55f86bb39d123e24856a9055059ef26e8 Mon Sep 17 00:00:00 2001 From: Keisuke Umezawa Date: Sun, 6 Aug 2017 10:00:15 +0900 Subject: [PATCH 2/2] just fix small error --- chainer/links/connection/linear.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chainer/links/connection/linear.py b/chainer/links/connection/linear.py index a5d74a53f287..3e48aa6682e8 100644 --- a/chainer/links/connection/linear.py +++ b/chainer/links/connection/linear.py @@ -15,8 +15,8 @@ class Linear(link.Link): The weight matrix ``W`` is initialized with i.i.d. Gaussian samples, each of which has zero mean and deviation :math:`\\sqrt{1/\\text{in_size}}`. The bias vector ``b`` is of size ``out_size``. Each element is initialized with - the ``bias`` value. If ``nobias`` argument is set to True, then this link - does not hold a bias vector. + the ``bias`` value. If ``nobias`` argument is set to ``True``, then this + link does not hold a bias vector. Args: in_size (int or None): Dimension of input vectors. If ``None``, @@ -56,7 +56,7 @@ class Linear(link.Link): (1, 10) 2. Omit ``in_size`` (give the output size only as the first argument) - or fill it with ``None``: + or fill it with ``None``: In this case, the size of second axis of ``x`` is used as the input size. So the below two cases are the same.