提交 383d0cd6 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added error messages

上级 225f37e0
...@@ -121,13 +121,23 @@ class DisconnectedType(theano.gof.type.Type): ...@@ -121,13 +121,23 @@ class DisconnectedType(theano.gof.type.Type):
)) ))
def fiter_variable(self, other): def fiter_variable(self, other):
raise raise AssertionError(
(
"If you're assigning to a DisconnectedType you're"
" doing something wrong. It should only be used as"
" a symbolic placeholder."
))
def may_share_memory(a, b): def may_share_memory(a, b):
return False return False
def value_eq(a, b, force_same_dtype=True): def value_eq(a, b, force_same_dtype=True):
raise raise AssertionError(
(
"If you're assigning to a DisconnectedType you're"
" doing something wrong. It should only be used as"
" a symbolic placeholder."
))
######################## ########################
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论