提交 85a63577 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix test in FAST_COMPILE mode. GpuContiguous need a perform method. This should…

Fix test in FAST_COMPILE mode. GpuContiguous need a perform method. This should fix test in the daily buildbot
上级 8e0d724b
...@@ -1112,6 +1112,11 @@ class GpuContiguous(Op): ...@@ -1112,6 +1112,11 @@ class GpuContiguous(Op):
} }
""" % dict(input=inp[0], z=out[0], fail=sub['fail']) """ % dict(input=inp[0], z=out[0], fail=sub['fail'])
def perform(self, node, inp, out_):
x, = inp
out, = out_
out[0] = pygpu.ascontiguousarray(x)
gpu_contiguous = GpuContiguous() gpu_contiguous = GpuContiguous()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论