提交 120eb3c7 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix a todo from before the merge of shared variable into theano.

上级 85b0821d
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
from theano import gof from theano import gof
from sharedvalue import SharedVariable
class SymbolicInput(object): class SymbolicInput(object):
""" """
...@@ -175,12 +176,8 @@ class In(SymbolicInput): ...@@ -175,12 +176,8 @@ class In(SymbolicInput):
mutable=None, strict=False, autoname=True, mutable=None, strict=False, autoname=True,
implicit=None): implicit=None):
if implicit is None: if implicit is None:
# TODO Having a default value being a Variable only makes sense
# if this is a SharedVariable. This should be changed once shared
# variables are part of Theano instead of living in a separate
# repository.
implicit = (isinstance(value, gof.Container) or implicit = (isinstance(value, gof.Container) or
isinstance(value, gof.Variable)) isinstance(value, SharedVariable))
super(In, self).__init__(variable, name, update, mutable, strict, super(In, self).__init__(variable, name, update, mutable, strict,
autoname, implicit = implicit) autoname, implicit = implicit)
self.value = value self.value = value
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论