提交 c2c06a58 authored 作者: James Bergstra's avatar James Bergstra

set the mode in test_opt_unpack because testing an optimization makes no sense…

set the mode in test_opt_unpack because testing an optimization makes no sense when the optimization is not applied
上级 d8f28f6f
...@@ -260,7 +260,7 @@ class test_structureddot(unittest.TestCase): ...@@ -260,7 +260,7 @@ class test_structureddot(unittest.TestCase):
images = tensor.Tensor(dtype='float32', broadcastable=[False, False])('images') images = tensor.Tensor(dtype='float32', broadcastable=[False, False])('images')
cscmat = CSC(kerns, spmat.indices[:spmat.size], spmat.indptr, spmat.shape) cscmat = CSC(kerns, spmat.indices[:spmat.size], spmat.indptr, spmat.shape)
f = theano.function([kerns, images], structured_dot(cscmat, images.T)) f = theano.function([kerns, images], structured_dot(cscmat, images.T), mode='FAST_RUN')
sdcscpresent = False sdcscpresent = False
for node in f.maker.env.toposort(): for node in f.maker.env.toposort():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论