Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs of links/connection/linear #3103

Merged
merged 1 commit into from Aug 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions chainer/links/connection/linear.py
Expand Up @@ -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``,
Expand Down Expand Up @@ -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.
Expand Down