Skip to content

Commit

Permalink
Merge 9747e45 into c39fa8d
Browse files Browse the repository at this point in the history
  • Loading branch information
mitmul committed Aug 16, 2017
2 parents c39fa8d + 9747e45 commit 8022000
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions chainer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from chainer.configuration import using_config # NOQA
from chainer.function import force_backprop_mode # NOQA
from chainer.function import Function # NOQA
from chainer.function import FunctionAdapter # NOQA
from chainer.function import no_backprop_mode # NOQA
from chainer.function_node import FunctionNode # NOQA
from chainer.functions import array # NOQA
Expand Down
2 changes: 1 addition & 1 deletion chainer/function_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def apply(self, inputs):
# Topological ordering
self.rank = max([x.rank for x in input_vars]) if input_vars else 0
# Add backward edges
for i, y in enumerate(ret):
for y in ret:
y.creator_node = self
self.inputs = tuple([x.node for x in input_vars])
# Add forward edges (must be weak references)
Expand Down
1 change: 1 addition & 0 deletions docs/source/reference/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Core functionalities

core/variable
core/function
core/function_node
core/link
core/optimizer
core/serializer
Expand Down
1 change: 1 addition & 0 deletions docs/source/reference/core/function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Function
:nosignatures:

chainer.Function
chainer.FunctionAdapter
chainer.force_backprop_mode
chainer.no_backprop_mode
8 changes: 8 additions & 0 deletions docs/source/reference/core/function_node.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FunctionNode
------------

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.FunctionNode

0 comments on commit 8022000

Please sign in to comment.