提交 45f55ca8 authored 作者: Mikhail Korobov's avatar Mikhail Korobov

TST avoid numpy deprecation warning in tests under Python 3

上级 ac26259d
...@@ -316,7 +316,7 @@ def makeSharedTester(shared_constructor_, ...@@ -316,7 +316,7 @@ def makeSharedTester(shared_constructor_,
if dtype is None: if dtype is None:
dtype = theano.config.floatX dtype = theano.config.floatX
shp = (100/4, 1024) # 100KB shp = (100//4, 1024) # 100KB
x = numpy.zeros(shp, dtype=dtype) x = numpy.zeros(shp, dtype=dtype)
x = self.cast_value(x) x = self.cast_value(x)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论