提交 f75bf51b authored 作者: Frederic Bastien's avatar Frederic Bastien

put more info in error.

上级 d43cdf28
......@@ -45,7 +45,7 @@ class CudaNdarrayType(Type):
def __init__(self, broadcastable, name=None, dtype=None):
if dtype != None and dtype != 'float32':
raise TypeError(self.__class__.__name__+' only support dtype float32 for now.')
raise TypeError(self.__class__.__name__+' only support dtype float32 for now. Tryed to use dtype %s'%dtype)
self.broadcastable = tuple(broadcastable)
self.name = name
self.dtype_specs() # error checking is done there
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论