提交 e22665a0 authored 作者: Frederic Bastien's avatar Frederic Bastien

Repair a numexpr benchmark script and make all line solid.

上级 404c1611
...@@ -188,10 +188,10 @@ def execs_timeit_2vector(exprs, fname=None): ...@@ -188,10 +188,10 @@ def execs_timeit_2vector(exprs, fname=None):
pylab.subplots_adjust(wspace=0.25, hspace=0.25) pylab.subplots_adjust(wspace=0.25, hspace=0.25)
#legend=[] #legend=[]
#plot = fig.add_subplot(1,len(exprs),idx) #plot = fig.add_subplot(1,len(exprs),idx)
speedup = [t[0].min()/t[1].min() for t in time] speedup = [t["numpy"].min()/t["numexpr"].min() for t in time]
pylab.semilogx(nb_calls, speedup, linewidth=1.0, linestyle = '--', color='r') pylab.semilogx(nb_calls, speedup, linewidth=1.0, color='r')
speedup = [t[0].min()/t[2].min() for t in time] speedup = [t["numpy"].min()/t["theano"].min() for t in time]
pylab.semilogx(nb_calls, speedup, linewidth=1.0, color = 'b') pylab.semilogx(nb_calls, speedup, linewidth=1.0, color = 'b')
pylab.grid(True) pylab.grid(True)
if (idx == 2) or (idx == 3): if (idx == 2) or (idx == 3):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论