Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ReyhaneAskari committed May 31, 2017
1 parent dd349d2 commit 82abb2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions theano/configdefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,18 +1477,15 @@ def filter_vm_lazy(val):
"""Time to wait before retrying to aquire the compile lock.""",
IntParam(5, lambda i: i > 0, allow_override=False),
in_c_key=False)
"""
If cycle_detection is set to regular, most inplaces are allowed,
but it is slower. If cycle_detection is set to faster,
less inplaces are allowed, but it makes the compilation faster.

The interaction of which one give the lower peak memory usage is complicated and
not predictable, so if you are close to the peak memory usage, triyng both
could give you a small gain.
"""
AddConfigVar('cycle_detection',
"""If true it disables the cycle detection in graph.
""",
"If cycle_detection is set to regular, most inplaces are allowed,"
"but it is slower. If cycle_detection is set to faster, less inplaces"
"are allowed, but it makes the compilation faster."

"The interaction of which one give the lower peak memory usage is"
"complicated and not predictable, so if you are close to the peak"
"memory usage, triyng both could give you a small gain. ",
EnumStr('regular', 'fast'),
in_c_key=False)

Expand Down
2 changes: 1 addition & 1 deletion theano/gof/fg.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def orderings(self):
" will be non-deterministic.")
if len(all_orderings) == 1:
# If there is only 1 ordering, we reuse it directly.
return all_orderings[0]
return all_orderings[0].copy()
else:
# If there is more than 1 ordering, combine them.
ords = OrderedDict()
Expand Down

0 comments on commit 82abb2a

Please sign in to comment.