提交 f8077826 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

A few PEP8 fixes

上级 f30f649f
......@@ -233,8 +233,8 @@ def rebuild_collect_shared(outputs,
cloned_outputs.append(Out(cloned_v, borrow=v.borrow))
else:
raise TypeError('Outputs must be theano Variable or '
'Out instances. Received ' + str(v)\
+ ' of type '+str(type(v)))
'Out instances. Received ' + str(v)
+ ' of type ' + str(type(v)))
#computed_list.append(cloned_v)
else:
if isinstance(outputs, Variable):
......@@ -278,7 +278,8 @@ class Param(object):
def __init__(self, variable, default=None, name=None, mutable=False,
strict=False, allow_downcast=None, implicit=None, borrow=None):
"""
:param variable: A variable in an expression graph to use as a compiled-function parameter
:param variable: A variable in an expression graph to use as a
compiled-function parameter
:param default: The default value to use at call-time (can also be a Container where
the function will find a value at call-time.)
......@@ -290,10 +291,11 @@ class Param(object):
:param borrow: Whether the function is allowed to alias some output to
this input. Using None (default) means we re-use the same value as the
`mutable` flag.
False: do not permit any output to be aliased to the input
:param strict: False -> function arguments may be copied or cast to match the
type required by the parameter `variable`. True -> function arguments must exactly match the type
type required by the parameter `variable`.
True -> function arguments must exactly match the type
required by `variable`.
:param allow_downcast: Only applies if `strict` is False.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论