提交 400dc78b authored 作者: James Bergstra's avatar James Bergstra

cuda.var - more info in exception

上级 cc3cca1f
...@@ -132,9 +132,9 @@ class CudaNdarraySharedVariable(SharedVariable, _operators): ...@@ -132,9 +132,9 @@ class CudaNdarraySharedVariable(SharedVariable, _operators):
return other._as_CudaNdarrayVariable() return other._as_CudaNdarrayVariable()
if not isinstance(other.type, tensor.TensorType): if not isinstance(other.type, tensor.TensorType):
raise TypeError('Incompatible type', other.type) raise TypeError('Incompatible type', (self, (self.type, other.type)))
if (other.type.dtype != self.dtype): if (other.type.dtype != self.dtype):
raise TypeError('Incompatible dtype', (self.dtype, other.type.dtype)) raise TypeError('Incompatible dtype', (self, (self.dtype, other.type.dtype)))
if (other.type.broadcastable != self.broadcastable): if (other.type.broadcastable != self.broadcastable):
raise TypeError('Incompatible broadcastable', (self, (self.broadcastable, raise TypeError('Incompatible broadcastable', (self, (self.broadcastable,
other.type.broadcastable))) other.type.broadcastable)))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论