提交 467be44c authored 作者: Frederic's avatar Frederic

Better error message

上级 d0e63566
...@@ -201,7 +201,10 @@ def shared(value, name=None, strict=False, allow_downcast=None, **kwargs): ...@@ -201,7 +201,10 @@ def shared(value, name=None, strict=False, allow_downcast=None, **kwargs):
' using \'theano.shared(..., borrow=True)\'',) ' using \'theano.shared(..., borrow=True)\'',)
raise raise
raise TypeError('No suitable SharedVariable constructor could be found', raise TypeError('No suitable SharedVariable constructor could be found.'
' Are you sure all kwargs are supported?'
' We do not support the parameter dtype or type.'
' value="%s". parameters="%s"' %
(value, kwargs)) (value, kwargs))
shared.constructors = [] shared.constructors = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论