提交 2fe7de5f authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed line too long

上级 2609bed8
......@@ -51,8 +51,9 @@ 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.'\
'Tried using dtype %s for variable %s' % (dtype, name))
raise TypeError('%s only supports dtype float32 for now. Tried '
'using dtype %s for variable %s' %
(self.__class__.__name__, dtype, name))
self.broadcastable = tuple(broadcastable)
self.name = name
self.dtype_specs() # error checking is done there
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论