def gpu_alloc_expected(x, *shp): g = gpuarray.empty(shp, dtype=x.dtype) g[:] = x return g
def gpu_alloc_expected(x, *shp): g = gpuarray.empty(shp, dtype=x.dtype) g[:] = x return g
def gpu_alloc_expected(x, *shp): g = gpuarray.empty(shp, dtype=x.dtype) g[:] = x return g
def gpu_alloc_expected(x, *shp): g = gpuarray.empty(shp, dtype=x.dtype) g[:] = x return g