提交 5ea7da99 authored 作者: Frederic Bastien's avatar Frederic Bastien

make fusion speed test in more case

上级 97f4a3f0
...@@ -774,10 +774,6 @@ class test_fusion(unittest.TestCase): ...@@ -774,10 +774,6 @@ class test_fusion(unittest.TestCase):
#Follow up. Clinker do the same... second cause? #Follow up. Clinker do the same... second cause?
mode2=cp(compile.get_default_mode()) mode2=cp(compile.get_default_mode())
mode2._optimizer=mode2._optimizer.excluding('local_elemwise_fusion') mode2._optimizer=mode2._optimizer.excluding('local_elemwise_fusion')
if s is None:
s=slice(0,49)
#s=slice(0,10)
#s=slice(49,59)
print "test with linker", str(mode1.linker) print "test with linker", str(mode1.linker)
times1=self.do(mode1, shared_fn, shp, gpu=gpu, nb_repeat=nb_repeat, assert_len_topo=False,slice=s) times1=self.do(mode1, shared_fn, shp, gpu=gpu, nb_repeat=nb_repeat, assert_len_topo=False,slice=s)
times2=self.do(mode2, shared_fn, shp, gpu=gpu, nb_repeat=nb_repeat, assert_len_topo=False,slice=s) times2=self.do(mode2, shared_fn, shp, gpu=gpu, nb_repeat=nb_repeat, assert_len_topo=False,slice=s)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论