Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
c7e88a00
提交
c7e88a00
authored
10月 06, 2014
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2150 from delallea/minor
Minor fixes
上级
8c86ef0d
0efa9077
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
25 行增加
和
25 行删除
+25
-25
ctype.txt
doc/extending/ctype.txt
+2
-2
type.txt
doc/extending/type.txt
+5
-5
conv.txt
doc/library/tensor/nnet/conv.txt
+1
-1
extending_theano.txt
doc/tutorial/extending_theano.txt
+3
-3
multi_cores.txt
doc/tutorial/multi_cores.txt
+4
-4
python.txt
doc/tutorial/python.txt
+1
-1
configdefaults.py
theano/configdefaults.py
+5
-5
var.py
theano/sandbox/cuda/var.py
+1
-1
opt.py
theano/tensor/opt.py
+3
-3
没有找到文件。
doc/extending/ctype.txt
浏览文件 @
c7e88a00
...
@@ -576,5 +576,5 @@ the elements of the shape).
...
@@ -576,5 +576,5 @@ the elements of the shape).
The C code works as the ViewOp. Shape_i has the additional ``i`` parameter
The C code works as the ViewOp. Shape_i has the additional ``i`` parameter
that you can use with ``%(i)s``.
that you can use with ``%(i)s``.
In your CHECK_INPUT, you must check that the input ha
ve enough ndim
to
In your CHECK_INPUT, you must check that the input ha
s enough dimensions
to
be able to
get the ith shapes
.
be able to
access the i-th one
.
doc/extending/type.txt
浏览文件 @
c7e88a00
...
@@ -140,12 +140,12 @@ default values.
...
@@ -140,12 +140,12 @@ default values.
.. method:: may_share_memory(a, b)
.. method:: may_share_memory(a, b)
Optional to run, but mandatory for DebugMode. Return True if the
p
ython
Optional to run, but mandatory for DebugMode. Return True if the
P
ython
objects `a` and `b` could share memory. Return False
objects `a` and `b` could share memory. Return False
otherwise. It is used to debug when Ops did
n'
t declare memory
otherwise. It is used to debug when Ops did
no
t declare memory
aliaing between variables. Can be a static method.
alia
s
ing between variables. Can be a static method.
It is highly recomm
ande
to use and is mandatory for Type in Theano
It is highly recomm
ended
to use and is mandatory for Type in Theano
as our buildbot run in DebugMode.
as our buildbot run
s
in DebugMode.
For each method, the *default* is what ``Type`` defines
For each method, the *default* is what ``Type`` defines
for you. So, if you create an instance of ``Type`` or an
for you. So, if you create an instance of ``Type`` or an
...
...
doc/library/tensor/nnet/conv.txt
浏览文件 @
c7e88a00
...
@@ -97,7 +97,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
...
@@ -97,7 +97,7 @@ TODO: Give examples on how to use these things! They are pretty complicated.
- :func:`GpuDnnConv <theano.sandbox.cuda.dnn.GpuDnnConv>` GPU-only
- :func:`GpuDnnConv <theano.sandbox.cuda.dnn.GpuDnnConv>` GPU-only
convolution using NVIDIA's cuDNN library. To enable it (and
convolution using NVIDIA's cuDNN library. To enable it (and
other cudnn-acclerated ops), set
other cudnn-acc
e
lerated ops), set
``THEANO_FLAGS=optimizer_including=cudnn`` in your environment.
``THEANO_FLAGS=optimizer_including=cudnn`` in your environment.
This requires that you have cuDNN installed and available. It
This requires that you have cuDNN installed and available. It
also requires a GPU with compute capability 3.0 or more.
also requires a GPU with compute capability 3.0 or more.
...
...
doc/tutorial/extending_theano.txt
浏览文件 @
c7e88a00
...
@@ -444,8 +444,8 @@ signature:
...
@@ -444,8 +444,8 @@ signature:
.. note::
.. note::
Not providing the `infer_shape` method
cause shapes
-related
Not providing the `infer_shape` method
prevents shape
-related
optimization
to not work with that
op. For example
optimization
s from working with this
op. For example
`your_op(inputs, ...).shape` will need the op to be executed just
`your_op(inputs, ...).shape` will need the op to be executed just
to get the shape.
to get the shape.
...
@@ -456,7 +456,7 @@ signature:
...
@@ -456,7 +456,7 @@ signature:
.. note::
.. note::
It converts the
p
ython function to a callable object that takes as
It converts the
P
ython function to a callable object that takes as
inputs Theano variables that were declared.
inputs Theano variables that were declared.
...
...
doc/tutorial/multi_cores.txt
浏览文件 @
c7e88a00
...
@@ -20,10 +20,10 @@ The most frequent way to control the number of threads used is via the
...
@@ -20,10 +20,10 @@ The most frequent way to control the number of threads used is via the
threads you want to use before starting the Python process. Some BLAS
threads you want to use before starting the Python process. Some BLAS
implementations support other environment variables.
implementations support other environment variables.
To test if you BLAS support
OpenMP/Multiple cores, you can use the theano/misc/check_blas.py scripts
from the command line like this::
To test if you BLAS support
s OpenMP/Multiple cores, you can use the theano/misc/check_blas.py script
from the command line like this::
OMP_NUM_THREAD=1 python theano/misc/check_blas.py -q
OMP_NUM_THREAD
S
=1 python theano/misc/check_blas.py -q
OMP_NUM_THREAD=2 python theano/misc/check_blas.py -q
OMP_NUM_THREAD
S
=2 python theano/misc/check_blas.py -q
...
@@ -57,7 +57,7 @@ threads you want to use before starting the Python process. You can
...
@@ -57,7 +57,7 @@ threads you want to use before starting the Python process. You can
test this with this command::
test this with this command::
$
OMP_NUM_THREADS=2 python theano/misc/elemwise_openmp_speedup.py
OMP_NUM_THREADS=2 python theano/misc/elemwise_openmp_speedup.py
#The output
#The output
Fast op time without openmp 0.000533s with openmp 0.000474s speedup 1.12
Fast op time without openmp 0.000533s with openmp 0.000474s speedup 1.12
...
...
doc/tutorial/python.txt
浏览文件 @
c7e88a00
...
@@ -11,6 +11,6 @@ tutorials/exercises if you need to learn it or only need a refresher:
...
@@ -11,6 +11,6 @@ tutorials/exercises if you need to learn it or only need a refresher:
* `Python Challenge <http://www.pythonchallenge.com/>`__
* `Python Challenge <http://www.pythonchallenge.com/>`__
* `Dive into Python <http://diveintopython.net/>`__
* `Dive into Python <http://diveintopython.net/>`__
* `Google Python Class <http://code.google.com/edu/languages/google-python-class/index.html>`__
* `Google Python Class <http://code.google.com/edu/languages/google-python-class/index.html>`__
* `Enthought
p
ython course <https://training.enthought.com/?utm_source=academic&utm_medium=email&utm_campaign=EToD-Launch#/courses>`__ (free for academics)
* `Enthought
P
ython course <https://training.enthought.com/?utm_source=academic&utm_medium=email&utm_campaign=EToD-Launch#/courses>`__ (free for academics)
We have a tutorial on how :ref:`Python manages its memory <python-memory-management>`.
We have a tutorial on how :ref:`Python manages its memory <python-memory-management>`.
theano/configdefaults.py
浏览文件 @
c7e88a00
...
@@ -435,10 +435,10 @@ AddConfigVar('warn.reduce_join',
...
@@ -435,10 +435,10 @@ AddConfigVar('warn.reduce_join',
'might have given an incorrect result. '
'might have given an incorrect result. '
'To disable this warning, set the Theano flag '
'To disable this warning, set the Theano flag '
'warn.reduce_join to False. The problem was an '
'warn.reduce_join to False. The problem was an '
'optimization
that modify
the pattern '
'optimization
, that modified
the pattern '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'did not check
ed
the reduction axis. So if the '
'did not check the reduction axis. So if the '
'reduction axis
is not 0, you got
wrong answer.'
),
'reduction axis
was not 0, you got a
wrong answer.'
),
BoolParam
(
warn_default
(
'0.7'
)),
BoolParam
(
warn_default
(
'0.7'
)),
in_c_key
=
False
)
in_c_key
=
False
)
...
@@ -534,7 +534,7 @@ AddConfigVar('openmp_elemwise_minsize',
...
@@ -534,7 +534,7 @@ AddConfigVar('openmp_elemwise_minsize',
AddConfigVar
(
'check_input'
,
AddConfigVar
(
'check_input'
,
"Specify if types should check their input in their C code. "
"Specify if types should check their input in their C code. "
"It can be used to speed up compilation, reduce overhead"
"It can be used to speed up compilation, reduce overhead
"
"(particularly for scalars) and reduce the number of generated C"
"(particularly for scalars) and reduce the number of generated C
"
"files."
,
"files."
,
BoolParam
(
True
))
BoolParam
(
True
))
theano/sandbox/cuda/var.py
浏览文件 @
c7e88a00
...
@@ -52,7 +52,7 @@ class CudaNdarrayConstant(_operators, Constant):
...
@@ -52,7 +52,7 @@ class CudaNdarrayConstant(_operators, Constant):
try
:
try
:
data
=
str
(
numpy
.
asarray
(
self
.
data
))
data
=
str
(
numpy
.
asarray
(
self
.
data
))
except
Exception
,
e
:
except
Exception
,
e
:
data
=
"error while transfer
ing the value:
"
+
str
(
e
)
data
=
"error while transfer
ring the value:
"
+
str
(
e
)
return
"CudaNdarrayConstant{"
+
data
+
"}"
return
"CudaNdarrayConstant{"
+
data
+
"}"
CudaNdarrayType
.
Constant
=
CudaNdarrayConstant
CudaNdarrayType
.
Constant
=
CudaNdarrayConstant
...
...
theano/tensor/opt.py
浏览文件 @
c7e88a00
...
@@ -3544,10 +3544,10 @@ def local_reduce_join(node):
...
@@ -3544,10 +3544,10 @@ def local_reduce_join(node):
'might have given an incorrect result for this code. '
'might have given an incorrect result for this code. '
'To disable this warning, set the Theano flag '
'To disable this warning, set the Theano flag '
'warn.reduce_join to False. The problem was an '
'warn.reduce_join to False. The problem was an '
'optimization
that modify
the pattern '
'optimization
, that modified
the pattern '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'"Reduce{scalar.op}(Join(axis=0, a, b), axis=0)", '
'did not check
ed
the reduction axis. So if the '
'did not check the reduction axis. So if the '
'reduction axis
is not 0, you got
wrong answer.'
'reduction axis
was not 0, you got a
wrong answer.'
))
))
return
return
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论