提交 8b52d2cd authored 作者: Frederic Bastien's avatar Frederic Bastien

use the provided dtype in test.x

上级 f0f2968f
...@@ -310,12 +310,12 @@ def makeSharedTester(shared_constructor_, ...@@ -310,12 +310,12 @@ def makeSharedTester(shared_constructor_,
shp = (100/4,1024)#100KB shp = (100/4,1024)#100KB
x = numpy.zeros(shp, dtype='float32') x = numpy.zeros(shp, dtype=dtype)
x = self.cast_value(x) x = self.cast_value(x)
x_shared = self.shared_constructor(x, borrow=True) x_shared = self.shared_constructor(x, borrow=True)
old_data = x_shared.container.storage[0] old_data = x_shared.container.storage[0]
nd = numpy.ones(shp, dtype='float32') nd = numpy.ones(shp, dtype=dtype)
if x.__class__.__name__ != 'csr_matrix': if x.__class__.__name__ != 'csr_matrix':
#sparse matrix don't support inplace affectation #sparse matrix don't support inplace affectation
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论