Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
9f2be8f3
提交
9f2be8f3
authored
3月 22, 2016
作者:
abergeron
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4273 from nouiz/profile
Add flag: profiling.ignore_first_call and Update How To release.
上级
177a6f1f
ee9bdefb
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
36 行增加
和
57 行删除
+36
-57
index.txt
doc/index.txt
+5
-1
how_to_release.txt
doc/internal/how_to_release.txt
+2
-54
config.txt
doc/library/config.txt
+8
-0
function_module.py
theano/compile/function_module.py
+3
-1
profiling.py
theano/compile/profiling.py
+11
-1
configdefaults.py
theano/configdefaults.py
+7
-0
没有找到文件。
doc/index.txt
浏览文件 @
9f2be8f3
...
...
@@ -21,7 +21,11 @@ learning/machine learning <http://www.mila.umontreal.ca/Home/courses>`_ classes)
News
====
* We added support for :ref:`CuDNN v3 <libdoc_cuda_dnn>`.
* Theano 0.8 was released 21th March 2016. Everybody is encouraged to update.
* Multi-GPU.
* We added support for :ref:`CuDNN v4 <libdoc_cuda_dnn>`.
* We added support for :attr:`CNMeM <config.lib.cnmem>` to speed up
the GPU memory allocation.
...
...
doc/internal/how_to_release.txt
浏览文件 @
9f2be8f3
...
...
@@ -14,6 +14,8 @@ and all commit log messages. Update the index.txt *News* section.
Update the "Vision"/"Vision State" in the file
``Theano/doc/introduction.txt``.
Update the file ``.mailmap`` to clean up the list of contributor.
Get a fresh copy of the repository
==================================
...
...
@@ -112,60 +114,6 @@ Finally
Change ``ISRELEASED`` back to ``False``.
Generate and upload the Windows installer
=========================================
We are now able to build and distribute an MSI installer for Windows,
assuming that Anaconda is the installed Python distribution. This
installer is generated by `WiX`_ from an XML file, stored in the
`Theano-wininstaller <https://github.com/Theano/Theano-wininstaller>`__
Git repository.
* Install `WiX`_ if it is not already installed.
* On a Windows machine, checkout the ``Theano-wininstaller`` repository::
git checkout https://github.com/Theano/Theano-wininstaller.git
* In ``Theano-wininstaller\src``, create a *new*
``theano_installer_<version>.wxs`` from the previous one. We want to
keep a history of these files, as they contain globally unique IDs.
* Change the strings and GUIDs appropriately, see `the WiX tutorial
<http://wix.tramontana.co.hu/tutorial/upgrades-and-modularization>`__
for a reference.
* Compile the ``.wxs`` file following the instructions in it, it will be something like::
candle.exe theano_installer_<version>.wxs
light.exe -ext WixUIExtension theano_installer_<version>.wixobj
This will generate a ``theano_installer_<version>.msi`` file in ``src``.
* Test it by trying to install and uninstall it. It can be done by
double-clicking on it, then uninstalling it from the Windows control
panel, or (more easily) from the command line, which also allows to
save the logs (use the ``*v`` modifier to increase verbosity)::
msiexec /i <file>.msi [/l[*v] install.log]
msiexec /x <file>.msi [/l[*v] uninstall.log]
* When the test works, copy ``theano_installer_<version>.msi``
into ``Theano-wininstaller\bin``, overwrite
``bin\theano_installer_latest.msi`` with another copy, then add the new
files into the Git repository, and push to master::
copy src\theano_installer_<version>.msi bin\
copy /y src\theano_installer_<version>.msi bin\theano_installer_latest.msi
git add src\theano_installer_<version>.wxs
git add bin\theano_installer_<version>.msi
git add bin\theano_installer_latest.msi
git commit
git push
.. _WiX: http://wixtoolset.org/
Announce the release
====================
...
...
doc/library/config.txt
浏览文件 @
9f2be8f3
...
...
@@ -388,6 +388,14 @@ import theano and print the config variable, as in:
Do a debugprint of the profiled functions
.. attribute:: config.profiling.ignore_first_call
Bool value: either True or False
Default False
Do we ignore the first call to a Theano function while profiling.
.. attribute:: config.lib.amdlibm
Bool value: either True or False
...
...
theano/compile/function_module.py
浏览文件 @
9f2be8f3
...
...
@@ -928,7 +928,9 @@ class Function(object):
profile
.
fct_call_time
+=
dt_call
if
hasattr
(
self
.
fn
,
'update_profile'
):
self
.
fn
.
update_profile
(
profile
)
if
profile
.
ignore_first_call
:
profile
.
reset
()
profile
.
ignore_first_call
=
False
if
self
.
return_none
:
return
None
elif
self
.
unpack_single
and
len
(
outputs
)
==
1
:
...
...
theano/compile/profiling.py
浏览文件 @
9f2be8f3
...
...
@@ -110,7 +110,16 @@ class ProfileStats(object):
in this class.
"""
def
reset
(
self
):
""" Ignore previous function call"""
#self.compile_time = 0.
self
.
fct_call_time
=
0.
self
.
fct_callcount
=
0
self
.
vm_call_time
=
0.
self
.
apply_time
=
{}
self
.
apply_callcount
=
{}
# self.apply_cimpl = None
#self.messge = None
#
# Note on implementation:
# Class variables are used here so that each one can be
...
...
@@ -216,6 +225,7 @@ class ProfileStats(object):
if
not
_atexit_registered
:
atexit
.
register
(
_atexit_print_fn
)
_atexit_registered
=
True
self
.
ignore_first_call
=
theano
.
config
.
profiling
.
ignore_first_call
def
class_time
(
self
):
"""
...
...
theano/configdefaults.py
浏览文件 @
9f2be8f3
...
...
@@ -1043,6 +1043,13 @@ AddConfigVar('profiling.debugprint',
BoolParam
(
False
),
in_c_key
=
False
)
AddConfigVar
(
'profiling.ignore_first_call'
,
"""
Do we ignore the first call of a Theano function.
"""
,
BoolParam
(
False
),
in_c_key
=
False
)
AddConfigVar
(
'optdb.position_cutoff'
,
'Where to stop eariler during optimization. It represent the'
' position of the optimizer where to stop.'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论