提交 81e7a293 authored 作者: Frederic's avatar Frederic

Fix test in debugmode

上级 3211fe6d
...@@ -727,8 +727,9 @@ class GpuAllocEmpty(HideC, Alloc): ...@@ -727,8 +727,9 @@ class GpuAllocEmpty(HideC, Alloc):
def make_node(self, *shape): def make_node(self, *shape):
sh, bcast = self.validate_shape(shape) sh, bcast = self.validate_shape(shape)
otype = GpuArrayType(dtype=self.dtype, broadcastable=bcast) output = GpuArrayType(dtype=self.dtype, broadcastable=bcast)()
return Apply(self, sh, [otype()]) output.tag.values_eq_approx = tensor.type.values_eq_approx_always_true
return Apply(self, sh, [output])
def perform(self, node, inputs, out_): def perform(self, node, inputs, out_):
out = out_[0] out = out_[0]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论