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

fix gh-5021, rename print_summary to summary in doc/comments.

上级 28785b40
...@@ -27,7 +27,7 @@ functions using either of the following two options: ...@@ -27,7 +27,7 @@ functions using either of the following two options:
:attr:`profiling.n_ops` and :attr:`profiling.min_memory_size` :attr:`profiling.n_ops` and :attr:`profiling.min_memory_size`
to modify the quantity of information printed. to modify the quantity of information printed.
2. Pass the argument :attr:`profile=True` to the function :func:`theano.function <function.function>`. And then call :attr:`f.profile.print_summary()` for a single function. 2. Pass the argument :attr:`profile=True` to the function :func:`theano.function <function.function>`. And then call :attr:`f.profile.summary()` for a single function.
- Use this option when you want to profile not all the - Use this option when you want to profile not all the
functions but one or more specific function(s). functions but one or more specific function(s).
- You can also combine the profile of many functions: - You can also combine the profile of many functions:
...@@ -39,7 +39,7 @@ functions using either of the following two options: ...@@ -39,7 +39,7 @@ functions using either of the following two options:
f = theano.function(..., profile=profile) # doctest: +SKIP f = theano.function(..., profile=profile) # doctest: +SKIP
g = theano.function(..., profile=profile) # doctest: +SKIP g = theano.function(..., profile=profile) # doctest: +SKIP
... # doctest: +SKIP ... # doctest: +SKIP
profile.print_summary() profile.summary()
......
...@@ -47,7 +47,7 @@ class TestSP(unittest.TestCase): ...@@ -47,7 +47,7 @@ class TestSP(unittest.TestCase):
filters = rng.randn(nkern, numpy.prod(kshp)) filters = rng.randn(nkern, numpy.prod(kshp))
biasvals = rng.randn(nkern) biasvals = rng.randn(nkern)
for mode in ('FAST_COMPILE', 'FAST_RUN'): # , profmode): for mode in ('FAST_COMPILE', 'FAST_RUN'):
ttot, ntot = 0, 0 ttot, ntot = 0, 0
for conv_mode in convmodes: for conv_mode in convmodes:
for ss in ssizes: for ss in ssizes:
...@@ -128,7 +128,6 @@ class TestSP(unittest.TestCase): ...@@ -128,7 +128,6 @@ class TestSP(unittest.TestCase):
# print 'Numpy processing time: ', ntot # print 'Numpy processing time: ', ntot
# print 'Theano processing time: ', ttot # print 'Theano processing time: ', ttot
# profmode.print_summary()
# this doesn't compare the output of anything... but I manually verified that the patches # this doesn't compare the output of anything... but I manually verified that the patches
# are properly generated # are properly generated
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论