提交 3a258042 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix a test inserted today.

上级 10b7cb91
...@@ -44,7 +44,7 @@ class CudaNdarrayType(Type): ...@@ -44,7 +44,7 @@ class CudaNdarrayType(Type):
""" """
def __init__(self, broadcastable, name=None, dtype=None): def __init__(self, broadcastable, name=None, dtype=None):
if dtype != None or dtype != 'float32': 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.')
self.broadcastable = tuple(broadcastable) self.broadcastable = tuple(broadcastable)
self.name = name self.name = name
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论