Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
53df7d6c
提交
53df7d6c
authored
9月 30, 2012
作者:
nouiz
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #972 from delallea/minor2
Minor stuff
上级
5025e8ef
975e10b2
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
17 行增加
和
15 行删除
+17
-15
install.txt
doc/install.txt
+1
-1
sparse.txt
doc/sandbox/sparse.txt
+1
-1
faq.txt
doc/tutorial/faq.txt
+10
-10
scan_perform_ext.py
theano/scan_module/scan_perform_ext.py
+3
-1
extra_ops.py
theano/tensor/extra_ops.py
+2
-2
没有找到文件。
doc/install.txt
浏览文件 @
53df7d6c
...
@@ -41,7 +41,7 @@ instructions below for detailed installation steps):
...
@@ -41,7 +41,7 @@ instructions below for detailed installation steps):
>=0.8 if you are using sparse matrices, because ``scipy.sparse``
>=0.8 if you are using sparse matrices, because ``scipy.sparse``
is buggy in 0.6 (the ``scipy.csc_matrix`` version of ``dot()`` has a
is buggy in 0.6 (the ``scipy.csc_matrix`` version of ``dot()`` has a
bug with singleton dimensions, there may be more bugs) and we do not
bug with singleton dimensions, there may be more bugs) and we do not
tests with 0.7*
.
run tests with 0.7
.
A `BLAS`_ installation (with Level 3 functionality)
A `BLAS`_ installation (with Level 3 functionality)
Including the development headers (``-dev``, ``-devel``, depending on
Including the development headers (``-dev``, ``-devel``, depending on
...
...
doc/sandbox/sparse.txt
浏览文件 @
53df7d6c
...
@@ -15,7 +15,7 @@ Note that you want SciPy >= 0.8.0.
...
@@ -15,7 +15,7 @@ Note that you want SciPy >= 0.8.0.
dimensions. There may be more bugs. It also has inconsistent
dimensions. There may be more bugs. It also has inconsistent
implementation of sparse matrices.
implementation of sparse matrices.
We do not test again SciPy 0.7.*.
We do not test again
st
SciPy 0.7.*.
We describe the details of the compressed sparse matrix types.
We describe the details of the compressed sparse matrix types.
``scipy.sparse.csc_matrix``
``scipy.sparse.csc_matrix``
...
...
doc/tutorial/faq.txt
浏览文件 @
53df7d6c
...
@@ -49,17 +49,17 @@ Faster Small Theano function
...
@@ -49,17 +49,17 @@ Faster Small Theano function
For Theano 0.6 and up.
For Theano 0.6 and up.
For Theano function
that don't do much work
like a regular logistic
For Theano function
s that don't do much work,
like a regular logistic
regression, the overhead of checking the input can be significant. You
regression, the overhead of checking the input can be significant. You
can disable it by setting
f.trust_input to True to remove this
can disable it by setting
``f.trust_input`` to True.
check. Make sure you pass argument as what you said when compiling the
Make sure the types of arguments you provide match those defined when
Theano function
.
the function was compiled
.
Also
for small Theano function, you can remove more p
ython overhead by
Also
, for small Theano functions, you can remove more P
ython overhead by
making a Theano function that do
n't take any inputs
. You can use shared
making a Theano function that do
es not take any input
. You can use shared
variable
to help you
. Then you can call it like this: ``f.fn()`` or
variable
s to achieve this
. Then you can call it like this: ``f.fn()`` or
``f.fn(n_calls=N)`` to speed up. In the last case, only the last
``f.fn(n_calls=N)`` to speed
it
up. In the last case, only the last
function output is returned.
function output
(out of N calls)
is returned.
Related Projects
Related Projects
----------------
----------------
...
...
theano/scan_module/scan_perform_ext.py
浏览文件 @
53df7d6c
import
os
,
logging
,
sys
import
logging
import
os
import
sys
import
theano
import
theano
from
theano
import
config
from
theano
import
config
...
...
theano/tensor/extra_ops.py
浏览文件 @
53df7d6c
...
@@ -96,7 +96,7 @@ class BinCountOp(theano.Op):
...
@@ -96,7 +96,7 @@ class BinCountOp(theano.Op):
if
not
bool
(
numpy_ver
>=
[
1
,
6
]):
if
not
bool
(
numpy_ver
>=
[
1
,
6
]):
raise
NotImplementedError
(
raise
NotImplementedError
(
"BinCountOp with minlength attribute"
"BinCountOp with minlength attribute"
"
need
NumPy 1.6 or higher."
)
"
requires
NumPy 1.6 or higher."
)
def
__eq__
(
self
,
other
):
def
__eq__
(
self
,
other
):
return
(
type
(
self
)
==
type
(
other
)
and
return
(
type
(
self
)
==
type
(
other
)
and
...
@@ -152,7 +152,7 @@ class BinCountOp(theano.Op):
...
@@ -152,7 +152,7 @@ class BinCountOp(theano.Op):
if
weights
is
not
None
and
weights
.
shape
!=
x
.
shape
:
if
weights
is
not
None
and
weights
.
shape
!=
x
.
shape
:
raise
TypeError
(
"All inputs must have the same shape."
)
raise
TypeError
(
"All inputs must have the same shape."
)
#Needed for numpy 1.4.1 compatibility
#
Needed for numpy 1.4.1 compatibility
if
self
.
minlength
:
if
self
.
minlength
:
out
=
np
.
bincount
(
x
,
weights
=
weights
,
minlength
=
self
.
minlength
)
out
=
np
.
bincount
(
x
,
weights
=
weights
,
minlength
=
self
.
minlength
)
else
:
else
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论