提交 9a9e91a8 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

polishing comments in scan.py

上级 eb7e5d93
...@@ -68,10 +68,6 @@ def hash_listsDictsTuples(x): ...@@ -68,10 +68,6 @@ def hash_listsDictsTuples(x):
return hash_value return hash_value
## TODO
###################################
## Implement specific function calls : map, reduce, generate
def map(fn, sequences, non_sequences = [], def map(fn, sequences, non_sequences = [],
truncate_gradient = -1, go_backwards = False, truncate_gradient = -1, go_backwards = False,
mode = None, name = None): mode = None, name = None):
...@@ -88,8 +84,8 @@ def map(fn, sequences, non_sequences = [], ...@@ -88,8 +84,8 @@ def map(fn, sequences, non_sequences = [],
:param truncate_gradient: see scan for more info :param truncate_gradient: see scan for more info
:param go_backwards: if map should also inverse the order in the arrays :param go_backwards: set to true if you want map to start at the end of the
see scan for more info provided arrays in ``sequences`` going towards 0 (back in time)
:param mode: see scan :param mode: see scan
...@@ -108,15 +104,17 @@ def reduce(fn, sequences, outputs_info, non_sequences = [], go_backwards = False ...@@ -108,15 +104,17 @@ def reduce(fn, sequences, outputs_info, non_sequences = [], go_backwards = False
sequences ( see scan `fn` for more info) sequences ( see scan `fn` for more info)
:param outputs_info: information about outputs (mainly the initial state :param outputs_info: information about outputs (mainly the initial state
of each ) of each, but other options are available ), see scan for more
info
:param sequences: list of arrays over which reduce should :param sequences: list of arrays over which reduce should
iterate (see scan for more info) iterate (see scan for more info)
:param non_sequences: list of other arguments of `fn` over which :param non_sequences: list of other arguments of `fn` over which
reduce shouldn't iterate (see scan for more info) reduce shouldn't iterate (see scan for more info)
:param go_backwards: if reduce should also inverse the order in the arrays :param go_backwards: set to true if you want map to start at the end of the
see scan for more info provided arrays in ``sequences`` going towards 0 (back in time)
:param mode: see scan :param mode: see scan
:param name: see scan :param name: see scan
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论