Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
8576a61d
提交
8576a61d
authored
7月 20, 2012
作者:
David Warde-Farley
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #773 from nouiz/small
Small
上级
000efcae
ea49e217
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
92 行增加
和
7 行删除
+92
-7
.mailmap
.mailmap
+74
-0
dev_start_guide.txt
doc/dev_start_guide.txt
+3
-1
install.txt
doc/install.txt
+1
-1
config.txt
doc/library/config.txt
+3
-1
configdefaults.py
theano/configdefaults.py
+1
-1
cuda_ndarray.cu
theano/sandbox/cuda/cuda_ndarray.cu
+4
-1
test_opt.py
theano/tensor/tests/test_opt.py
+6
-2
没有找到文件。
.mailmap
0 → 100644
浏览文件 @
8576a61d
<abergeron@gmail.com> <anakha@kami.(none)>
David Warde-Farley <wardefar@iro.umontreal.ca> David Warde-Farley <dwf@cs.toronto.edu>
David Warde-Farley <wardefar@iro.umontreal.ca> David Warde Farley <dwf@cs.toronto.edu>
Douglas Eck <douglas.eck@gmail.com> eckdoug@localhost <eckdoug@localhost>
Douglas Eck <douglas.eck@gmail.com> eckdoug@waits.local <eckdoug@waits.local>
Dumitru Erhan <dumitru.erhan@gmail.com> dumitru@deepnets.mtv.corp.google.com <dumitru@deepnets.mtv.corp.google.com>
Dumitru Erhan <dumitru.erhan@gmail.com> erhandum@bikat.iro.umontreal.ca <erhandum@bikat.iro.umontreal.ca>
Francois Savard <devnull@localhost> fsavard <devnull@localhost>
# 5 Firstname Lastname <firstname.lastname@example.net>
# 4 Laboratoire d'Informatique des Systemes Adaptatifs <lisa@iro.umontreal.ca>
# 6 Li Yao <yaoli@iro>
# 1 olivier@ordinateur-de-olivier.local <olivier@ordinateur-de-olivier.local>
# 2 onze <onzeonline@gmail.com>
# 25 projects@lgcm <projects@lgcm>
# 1 tutorial/debug_faq.txt <devnull@localhost>
Frederic Bastien <nouiz@nouiz.org> Frederic Bastien <bastienf@briaree1.rqchp.qc.ca>
Frederic Bastien <nouiz@nouiz.org> Frederic Bastien <bastienf@iro.umontreal.ca>
Frederic Bastien <nouiz@nouiz.org> Frédéric Bastien <nouiz@nouiz.org>
Frederic Bastien <nouiz@nouiz.org> Nouiz <nouiz@Nouiz-lap-ub.(none)>
Frederic Bastien <nouiz@nouiz.org> Nouiz <nouiz@nouiz.org>
Frederic Bastien <nouiz@nouiz.org> bastienf@bikat.iro.umontreal.ca <bastienf@bikat.iro.umontreal.ca>
Frederic Bastien <nouiz@nouiz.org> bastienf@ldapk3.scinet.utoronto.ca <bastienf@ldapk3.scinet.utoronto.ca>
Frederic Bastien <nouiz@nouiz.org> nouiz <nouiz@nouiz.org>
Frederic Bastien <nouiz@nouiz.org> Frederic <nouiz@nouiz.org>
Grégoire <gregoire.mesnil@gmail.com> Grégoire <gregoire.mesnil@laposte.net>
Guillaume Desjardins <guillaume.desjardins@gmail.com> desjagui <devnull@localhost>
Guillaume Desjardins <guillaume.desjardins@gmail.com> desjagui@atchoum.iro.umontreal.ca <desjagui@atchoum.iro.umontreal.ca>
Guillaume Desjardins <guillaume.desjardins@gmail.com> desjagui@opale.iro.umontreal.ca <desjagui@opale.iro.umontreal.ca>
Guillaume Desjardins <guillaume.desjardins@gmail.com> gdesjardins <devnull@localhost>
Hani Almousli <hani.mousli@gmail.com> Hani <hani.mousli@gmail.com>
Hani Almousli <hani.mousli@gmail.com> HaniAlmousli <hani.mousli@gmail.com>
Ian Goodfellow <goodfellow.ian@gmail.com> Ian Goodfellow <devnull@localhost>
Ian Goodfellow <goodfellow.ian@gmail.com> goodfeli <goodfellow.ian@gmail.com>
James Bergstra <james.bergstra@gmail.com> James Bergstra <bergstrj@iro.umontreal.ca>
James Bergstra <james.bergstra@gmail.com> bergstra@ip05.m <bergstra@ip05.m>
James Bergstra <james.bergstra@gmail.com> bergstra@mlp4.ais.sandbox <bergstra@mlp4.ais.sandbox>
James Bergstra <james.bergstra@gmail.com> bergstra@tikuanyin <bergstra@tikuanyin>
James Bergstra <james.bergstra@gmail.com> bergstrj@iro.umontreal.ca <bergstrj@iro.umontreal.ca>
James Bergstra <james.bergstra@gmail.com> bergstrj@lgcm <bergstrj@lgcm>
James Bergstra <james.bergstra@gmail.com> james@X40 <james@X40>
James Bergstra <james.bergstra@gmail.com> james@crane <james@crane>
James Bergstra <james.bergstra@gmail.com> james@mackie <james@mackie>
James Bergstra <james.bergstra@gmail.com> james@x40.unstable <james@x40.unstable>
James Bergstra <james.bergstra@gmail.com> test_rng_mrg.py <devnull@localhost>
John Salvatier <jsalvatier@gmail.com> jsalvatier <jsalvatier@gmail.com>
Joseph Turian <turian@iro.umontreal.ca> Joseph Turian <turian@gmail.com>
Joseph Turian <turian@iro.umontreal.ca> turian@grenat.iro.umontreal.ca <turian@grenat.iro.umontreal.ca>
Joseph Turian <turian@iro.umontreal.ca> turian@lgcm <turian@lgcm>
Joseph Turian <turian@iro.umontreal.ca> turian@lsvm.iro.umontreal.ca <turian@lsvm.iro.umontreal.ca>
Joseph Turian <turian@iro.umontreal.ca> turian@rubis.iro.umontreal.ca <turian@rubis.iro.umontreal.ca>
Joseph Turian <turian@iro.umontreal.ca> turianjo@is23.m <turianjo@is23.m>
Josh Bleecher Snyder <josharian@gmail.com> Josh Bleecher Snyder <josharian+github@gmail.com>
Olivier Breuleux <breuleux@gmail.com> Olivier Breuleux <breuleuo@iro.umontreal.ca>
Olivier Breuleux <breuleux@gmail.com> olivier@olivier-desktop <olivier@olivier-desktop>
Olivier Delalleau <delallea@iro> Olivier Delalleau <delallea@iro.umontreal.ca>
Olivier Delalleau <delallea@iro> delallea <delallea@iro.umontreal.ca>
Olivier Delalleau <delallea@iro> delallea@valhalla.apstat.com <delallea@valhalla.apstat.com>
Nicolas Boulanger-Lewandowski <nicolas_boulanger@hotmail.com> boulanni <nicolas_boulanger@hotmail.com>
Pascal Lamblin <lamblinp@iro.umontreal.ca> lamblin <lamblinp@iro.umontreal.ca>
Pascal Lamblin <lamblinp@iro.umontreal.ca> lamblinp@lgcm <lamblinp@lgcm>
Philippe Hamel <hamel.phil@gmail.com> Philippe Hamel <hamel.phil@gmail.com>
Philippe Hamel <hamel.phil@gmail.com> Philippe Hamel <higgsbosonh@hotmail.com>
Pierre-Antoine Manzagol <pierre.antoine.manzagol@gmail.com> Pierre-Antoine Manzagol <manzagop@iro>
Raul Chandias Ferrari <devnull@localhost> chandiar <devnull@localhost>
Razvan Pascanu <r.pascanu@gmail.com> Razvan Pascanu <pascanur@iro>
Razvan Pascanu <r.pascanu@gmail.com> Razvan Pascanu <rman@rman-Dell-System-XPS-L502X.(none)>
Razvan Pascanu <r.pascanu@gmail.com> Razvan Pascanu <rman@rman-pad.(none)>
Razvan Pascanu <r.pascanu@gmail.com> pascanur@simplet.iro.umontreal.ca <pascanur@simplet.iro.umontreal.ca>
Razvan Pascanu <r.pascanu@gmail.com> rman@rpad <rman@rpad>
Sander Dieleman <sanderdieleman@gmail.com> benanne <sanderdieleman@gmail.com>
Xavier Glorot <glorotxa@iro.umontreal.ca> glorotxa <glorotxa@iro.umontreal.ca>
Xavier Glorot <glorotxa@iro.umontreal.ca> glorotxa@timide.iro.umontreal.ca <glorotxa@timide.iro.umontreal.ca>
Yoshua Bengio <bengioy@iro.umontreal.ca> bengioy@bengio-mac.local <bengioy@bengio-mac.local>
doc/dev_start_guide.txt
浏览文件 @
8576a61d
...
@@ -331,7 +331,7 @@ To install it on Linux, you can do like this:
...
@@ -331,7 +331,7 @@ To install it on Linux, you can do like this:
.. code-block:: bash
.. code-block:: bash
cd
cd
git clone https://github.com/gabrielelanaro/emacs-for-python.git .emacs.d/emacs-for-python
git clone https://github.com/gabrielelanaro/emacs-for-python.git
~/
.emacs.d/emacs-for-python
Then in your ``~/.emacs`` file, add this:
Then in your ``~/.emacs`` file, add this:
...
@@ -348,6 +348,8 @@ Then in your ``~/.emacs`` file, add this:
...
@@ -348,6 +348,8 @@ Then in your ``~/.emacs`` file, add this:
(require 'epy-python) ;; If you want the python facilities [optional]
(require 'epy-python) ;; If you want the python facilities [optional]
(require 'epy-completion) ;; If you want the autocompletion settings [optional]
(require 'epy-completion) ;; If you want the autocompletion settings [optional]
(require 'epy-editing) ;; For configurations related to editing [optional]
(require 'epy-editing) ;; For configurations related to editing [optional]
;; [newer version of emacs-for-python]
(require 'epy-nose) ;; For shortcut to call nosetests [optional]
;; Define f10 to previous error
;; Define f10 to previous error
;; Define f11 to next error
;; Define f11 to next error
...
...
doc/install.txt
浏览文件 @
8576a61d
...
@@ -228,7 +228,7 @@ get the code using `Git <http://git-scm.com>`__:
...
@@ -228,7 +228,7 @@ get the code using `Git <http://git-scm.com>`__:
git clone git://github.com/Theano/Theano.git
git clone git://github.com/Theano/Theano.git
From here, the easiest way to get started is
From here, the easiest way to get started is
(this request setuptools_ or distribute_ to be installed):
.. code-block:: bash
.. code-block:: bash
...
...
doc/library/config.txt
浏览文件 @
8576a61d
...
@@ -60,7 +60,9 @@ Environment Variables
...
@@ -60,7 +60,9 @@ Environment Variables
.. envvar:: THEANORC
.. envvar:: THEANORC
The location[s] of the .theanorc file[s] in ConfigParser format.
The location[s] of the .theanorc file[s] in ConfigParser format.
It defaults to ``$HOME/.theanorc``.
It defaults to ``$HOME/.theanorc``. On Windows, it defalt to
``$HOME/.theanorc:$HOME/.theanorc.txt`` to make Windows users life
easier.
Here is the .theanorc equivalent to the THEANO_FLAGS in the example above:
Here is the .theanorc equivalent to the THEANO_FLAGS in the example above:
...
...
theano/configdefaults.py
浏览文件 @
8576a61d
...
@@ -296,7 +296,7 @@ AddConfigVar('warn.ignore_bug_before',
...
@@ -296,7 +296,7 @@ AddConfigVar('warn.ignore_bug_before',
"bugs found after that version. "
"bugs found after that version. "
"Warning for specific bugs can be configured with specific "
"Warning for specific bugs can be configured with specific "
"[warn] flags."
),
"[warn] flags."
),
EnumStr
(
'None'
,
'all'
,
'0.3'
,
'0.4'
,
'0.4.1'
,
'0.5'
,
EnumStr
(
'None'
,
'all'
,
'0.3'
,
'0.4'
,
'0.4.1'
,
'0.5'
,
'0.6'
,
allow_override
=
False
),
allow_override
=
False
),
in_c_key
=
False
)
in_c_key
=
False
)
...
...
theano/sandbox/cuda/cuda_ndarray.cu
浏览文件 @
8576a61d
...
@@ -847,7 +847,7 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
...
@@ -847,7 +847,7 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
if
(
out
&&
(
out
->
nd
!=
self
->
nd
||
if
(
out
&&
(
out
->
nd
!=
self
->
nd
||
CudaNdarray_HOST_DIMS
(
out
)[
0
]
!=
nb_indices
))
CudaNdarray_HOST_DIMS
(
out
)[
0
]
!=
nb_indices
))
out
=
NULL
;
out
=
NULL
;
int
dims
[
self
->
nd
]
;
int
*
dims
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
self
->
nd
)
;
dims
[
0
]
=
nb_indices
;
dims
[
0
]
=
nb_indices
;
for
(
int
i
=
1
;
i
<
self
->
nd
;
i
++
)
{
for
(
int
i
=
1
;
i
<
self
->
nd
;
i
++
)
{
...
@@ -860,11 +860,13 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
...
@@ -860,11 +860,13 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
out
=
(
CudaNdarray
*
)
CudaNdarray_New
();
out
=
(
CudaNdarray
*
)
CudaNdarray_New
();
if
(
!
out
){
if
(
!
out
){
Py_DECREF
(
indices_obj
);
Py_DECREF
(
indices_obj
);
free
(
dims
);
return
NULL
;
return
NULL
;
}
}
if
(
CudaNdarray_alloc_contiguous
(
out
,
self
->
nd
,
dims
))
{
if
(
CudaNdarray_alloc_contiguous
(
out
,
self
->
nd
,
dims
))
{
Py_DECREF
(
out
);
Py_DECREF
(
out
);
Py_DECREF
(
indices_obj
);
Py_DECREF
(
indices_obj
);
free
(
dims
);
return
NULL
;
return
NULL
;
}
}
}
else
{
}
else
{
...
@@ -913,6 +915,7 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
...
@@ -913,6 +915,7 @@ CudaNdarray_TakeFrom(CudaNdarray * self, PyObject *args){
return
NULL
;
return
NULL
;
}
}
}
}
free
(
dims
);
dim3
n_blocks
(
std
::
min
(
CudaNdarray_HOST_DIMS
(
out
)[
0
],
65535
),
1
,
1
);
dim3
n_blocks
(
std
::
min
(
CudaNdarray_HOST_DIMS
(
out
)[
0
],
65535
),
1
,
1
);
switch
(
self
->
nd
)
{
switch
(
self
->
nd
)
{
case
1
:
case
1
:
...
...
theano/tensor/tests/test_opt.py
浏览文件 @
8576a61d
...
@@ -3317,12 +3317,16 @@ class T_local_sum(unittest.TestCase):
...
@@ -3317,12 +3317,16 @@ class T_local_sum(unittest.TestCase):
optimizer
.
optimize
(
g
)
optimizer
.
optimize
(
g
)
order
=
g
.
toposort
()
order
=
g
.
toposort
()
assert
1
==
sum
([
isinstance
(
node
.
op
,
T
.
CAReduce
)
for
node
in
order
])
assert
1
==
sum
([
isinstance
(
node
.
op
,
T
.
CAReduce
)
for
node
in
order
])
op
=
order
[
-
2
]
.
op
if
config
.
mode
==
'FAST_COMPILE'
:
node
=
order
[
-
1
]
else
:
node
=
order
[
-
2
]
op
=
node
.
op
assert
isinstance
(
op
,
T
.
CAReduce
)
assert
isinstance
(
op
,
T
.
CAReduce
)
# -- the leading broadcastable dimension has been dropped
# -- the leading broadcastable dimension has been dropped
# by the local_sum_broadcastable optimization
# by the local_sum_broadcastable optimization
# now summation is over the original x's dimension 1.
# now summation is over the original x's dimension 1.
assert
order
[
-
2
]
.
inputs
[
0
]
.
ndim
==
2
,
order
[
-
2
]
assert
node
.
inputs
[
0
]
.
ndim
==
2
,
node
assert
op
.
axis
==
(
0
,),
op
.
axis
assert
op
.
axis
==
(
0
,),
op
.
axis
def
test_local_sum_broadcast_some_1
(
self
):
def
test_local_sum_broadcast_some_1
(
self
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论