提交 3415e0b3 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

added options dictionary to scan

上级 d1d7bda2
...@@ -71,6 +71,7 @@ def scan(fn, ...@@ -71,6 +71,7 @@ def scan(fn,
go_backwards=False, go_backwards=False,
mode=None, mode=None,
name=None, name=None,
options=None,
profile=False): profile=False):
""" """
This function constructs and applies a Scan op to the provided This function constructs and applies a Scan op to the provided
...@@ -319,6 +320,8 @@ def scan(fn, ...@@ -319,6 +320,8 @@ def scan(fn,
""" """
# Note : see the internal documentation of the scan op for naming # Note : see the internal documentation of the scan op for naming
# conventions and all other details # conventions and all other details
if options is None:
options = {}
rvals = scan_utils.canonical_arguments(sequences, rvals = scan_utils.canonical_arguments(sequences,
outputs_info, outputs_info,
non_sequences, non_sequences,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论