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 个修改的文件
包含
18 行增加
和
16 行删除
+18
-16
install.txt
doc/install.txt
+2
-2
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
...
...
@@ -29,7 +29,7 @@ instructions below for detailed installation steps):
Not technically required but *highly* recommended, in order to compile
generated C code. Theano `can` fall back on a NumPy-based Python execution
model, but a C compiler allows for vastly faster execution.
g++ >= 4.2 (for openmp that is currently always used)
g++ >= 4.2 (for openmp that is currently always used)
more recent version recommended!
`NumPy <http://numpy.scipy.org/>`_ >= 1.5.0
...
...
@@ -41,7 +41,7 @@ instructions below for detailed installation steps):
>=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
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)
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.
dimensions. There may be more bugs. It also has inconsistent
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.
``scipy.sparse.csc_matrix``
...
...
doc/tutorial/faq.txt
浏览文件 @
53df7d6c
...
...
@@ -49,17 +49,17 @@ Faster Small Theano function
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
can disable it by setting
f.trust_input to True to remove this
check. Make sure you pass argument as what you said when compiling the
Theano function
.
Also
for small Theano function, you can remove more p
ython overhead by
making a Theano function that do
n't take any inputs
. You can use shared
variable
to help you
. 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
function output is returned.
can disable it by setting
``f.trust_input`` to True.
Make sure the types of arguments you provide match those defined when
the function was compiled
.
Also
, for small Theano functions, you can remove more P
ython overhead by
making a Theano function that do
es not take any input
. You can use shared
variable
s to achieve this
. Then you can call it like this: ``f.fn()`` or
``f.fn(n_calls=N)`` to speed
it
up. In the last case, only the last
function output
(out of N calls)
is returned.
Related Projects
----------------
...
...
theano/scan_module/scan_perform_ext.py
浏览文件 @
53df7d6c
import
os
,
logging
,
sys
import
logging
import
os
import
sys
import
theano
from
theano
import
config
...
...
theano/tensor/extra_ops.py
浏览文件 @
53df7d6c
...
...
@@ -96,7 +96,7 @@ class BinCountOp(theano.Op):
if
not
bool
(
numpy_ver
>=
[
1
,
6
]):
raise
NotImplementedError
(
"BinCountOp with minlength attribute"
"
need
NumPy 1.6 or higher."
)
"
requires
NumPy 1.6 or higher."
)
def
__eq__
(
self
,
other
):
return
(
type
(
self
)
==
type
(
other
)
and
...
...
@@ -152,7 +152,7 @@ class BinCountOp(theano.Op):
if
weights
is
not
None
and
weights
.
shape
!=
x
.
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
:
out
=
np
.
bincount
(
x
,
weights
=
weights
,
minlength
=
self
.
minlength
)
else
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论