提交 0d41cc82 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

numpy -> np because of changes in master.

上级 6ce86f38
......@@ -224,7 +224,7 @@ class GpuArrayType(Type):
type(data) == float and
self.dtype == config.floatX)):
if not isinstance(data, gpuarray.GpuArray):
data = numpy.array(data, dtype=self.dtype, copy=False,
data = np.array(data, dtype=self.dtype, copy=False,
ndmin=len(self.broadcastable))
else:
data = gpuarray.array(data, dtype=self.typecode, copy=False,
......@@ -243,7 +243,7 @@ class GpuArrayType(Type):
up_dtype = scalar.upcast(self.dtype, data.dtype)
if up_dtype == self.dtype:
if not isinstance(data, gpuarray.GpuArray):
data = numpy.array(data, dtype=self.dtype, copy=False)
data = np.array(data, dtype=self.dtype, copy=False)
else:
data = gpuarray.array(data, dtype=self.dtype, copy=False)
else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论