提交 c275a1af authored 作者: Frederic Bastien's avatar Frederic Bastien

Remove leftover from the old back-end.

上级 49e0964c
...@@ -658,7 +658,7 @@ def gpuarray_shared_constructor(value, name=None, strict=False, ...@@ -658,7 +658,7 @@ def gpuarray_shared_constructor(value, name=None, strict=False,
notset object. notset object.
""" """
if target == 'gpu' or target == 'cpu': if target == 'cpu':
raise TypeError('not for me') raise TypeError('not for me')
if not isinstance(value, (np.ndarray, pygpu.gpuarray.GpuArray)): if not isinstance(value, (np.ndarray, pygpu.gpuarray.GpuArray)):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论