提交 aacaa693 authored 作者: Frederic's avatar Frederic

comment print in tests.

上级 c831f35e
...@@ -3264,15 +3264,15 @@ def test_speed_rnn(): ...@@ -3264,15 +3264,15 @@ def test_speed_rnn():
s_i: s_i + 1, s_i: s_i + 1,
shared_r: s_rinc}, shared_r: s_rinc},
mode=theano.Mode(linker='cvm')) mode=theano.Mode(linker='cvm'))
theano.printing.debugprint(f) #theano.printing.debugprint(f)
f_fn = f.fn f_fn = f.fn
print f_fn #print f_fn
t2 = time.time() t2 = time.time()
f_fn(n_calls=L - 2) f_fn(n_calls=L - 2)
f() # 999 to update the profiling timers f() # 999 to update the profiling timers
t3 = time.time() t3 = time.time()
print 'theano (updates, cvm)', t3 - t2 print 'theano (updates, cvm)', t3 - t2
print shared_r.get_value() #print shared_r.get_value()
def test_speed_batchrnn(): def test_speed_batchrnn():
...@@ -3327,9 +3327,9 @@ def test_speed_batchrnn(): ...@@ -3327,9 +3327,9 @@ def test_speed_batchrnn():
s_i: s_i + 1, s_i: s_i + 1,
shared_r: s_rinc}, shared_r: s_rinc},
mode=theano.Mode(linker='cvm')) mode=theano.Mode(linker='cvm'))
theano.printing.debugprint(f) #theano.printing.debugprint(f)
f_fn = f.fn f_fn = f.fn
print f_fn #print f_fn
t2 = time.time() t2 = time.time()
f_fn(n_calls=L - 2) f_fn(n_calls=L - 2)
f() # 999 to update the profiling timers f() # 999 to update the profiling timers
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论