提交 eebce83c authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix error due to missing 'gpua' attribute.

上级 e9d4ce35
...@@ -159,6 +159,9 @@ class Scan(PureOp): ...@@ -159,6 +159,9 @@ class Scan(PureOp):
if "allow_gc" not in self.__dict__: if "allow_gc" not in self.__dict__:
self.allow_gc = True self.allow_gc = True
self.info['allow_gc'] = True self.info['allow_gc'] = True
if not hasattr(self, 'gpua'):
self.gpua = False
self.info['gpua'] = False
def make_node(self, *inputs): def make_node(self, *inputs):
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论