Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
45d67974
提交
45d67974
authored
10月 19, 2015
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Doc typo
上级
0a8c40bb
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
25 行增加
和
28 行删除
+25
-28
using_gpu.txt
doc/tutorial/using_gpu.txt
+2
-2
function_module.py
theano/compile/function_module.py
+20
-21
graph.py
theano/gof/graph.py
+2
-3
test_blocksparse.py
theano/sandbox/tests/test_blocksparse.py
+0
-1
sigm.py
theano/tensor/nnet/sigm.py
+1
-1
没有找到文件。
doc/tutorial/using_gpu.txt
浏览文件 @
45d67974
...
@@ -786,6 +786,6 @@ Note
...
@@ -786,6 +786,6 @@ Note
* See :ref:`example_other_random` to know how to handle random numbers
* See :ref:`example_other_random` to know how to handle random numbers
on the GPU.
on the GPU.
* The mode `FAST_COMPILE` disable
c code, so also disable
the GPU. You
* The mode `FAST_COMPILE` disable
s C code, so also disables
the GPU. You
can use the Theano flag optimizer='fast_compile' to speed up
can use the Theano flag optimizer='fast_compile' to speed up
compilati
no and keeping
the GPU.
compilati
on and keep
the GPU.
theano/compile/function_module.py
浏览文件 @
45d67974
...
@@ -563,27 +563,26 @@ class Function(object):
...
@@ -563,27 +563,26 @@ class Function(object):
Parameters
Parameters
----------
----------
share_memory : boolean
share_memory : boolean
When True, two function share intermediate storages(storages except input and
When True, two function share intermediate storages(storages except input and
output storages). Otherwise two functions will only share partial
output storages). Otherwise two functions will only share partial
storages and same maker. If two functions share memory and
storages and same maker. If two functions share memory and
allow_gc=False, this will increase executing speed and save memory.
allow_gc=False, this will increase executing speed and save memory.
swap : dict
swap : dict
Dictionary that map old SharedVariables to new
Dictionary that map old SharedVariables to new
SharedVariables. Default is None.
SharedVariables. Default is None.
NOTE: The shared variable swap in only done in the new returned
NOTE: The shared variable swap in only done in the new returned
function, not in the user graph.
function, not in the user graph.
delete_updates : boolean
delete_updates : boolean
If True, Copied function will not have updates.
If True, Copied function will not have updates.
name : string
name : string
If provided, will be the name of the new
If provided, will be the name of the new
Function. Otherwise, it will be old + " copy"
Function. Otherwise, it will be old + " copy"
profile :
profile :
as theano.function profile parameter
as theano.function profile parameter
Returns
Returns
-------
-------
...
...
theano/gof/graph.py
浏览文件 @
45d67974
...
@@ -473,9 +473,8 @@ class Variable(Node):
...
@@ -473,9 +473,8 @@ class Variable(Node):
the scenes. Subsequent calls to :func:`eval` on that same variable
the scenes. Subsequent calls to :func:`eval` on that same variable
will be fast, because the variable caches the compiled function.
will be fast, because the variable caches the compiled function.
This way of computing have more overhead then a normal Theano
This way of computing has more overhead than a normal Theano
function, so don't use it too much in real script. But is
function, so don't use it too much in real scripts.
useful for interactive session and quick experiments.
"""
"""
if
inputs_to_values
is
None
:
if
inputs_to_values
is
None
:
...
...
theano/sandbox/tests/test_blocksparse.py
浏览文件 @
45d67974
...
@@ -212,7 +212,6 @@ class BlockSparse_Gemv_and_Outer(unittest.TestCase):
...
@@ -212,7 +212,6 @@ class BlockSparse_Gemv_and_Outer(unittest.TestCase):
def
op
(
b
,
h
,
W
):
def
op
(
b
,
h
,
W
):
return
self
.
gemv_op
(
b
.
take
(
oIdx
,
axis
=
0
),
W
,
h
,
iIdx
,
oIdx
)
return
self
.
gemv_op
(
b
.
take
(
oIdx
,
axis
=
0
),
W
,
h
,
iIdx
,
oIdx
)
eps
=
3e-4
eps
=
3e-3
eps
=
3e-3
utt
.
verify_grad
(
metaop
,
[
b_val
,
h_val
,
W_val
],
mode
=
self
.
mode
,
eps
=
eps
)
utt
.
verify_grad
(
metaop
,
[
b_val
,
h_val
,
W_val
],
mode
=
self
.
mode
,
eps
=
eps
)
utt
.
verify_grad
(
op
,
[
b_val
,
h_val
,
W_val
],
mode
=
self
.
mode
,
eps
=
eps
)
utt
.
verify_grad
(
op
,
[
b_val
,
h_val
,
W_val
],
mode
=
self
.
mode
,
eps
=
eps
)
...
...
theano/tensor/nnet/sigm.py
浏览文件 @
45d67974
...
@@ -316,7 +316,7 @@ theano.compile.optdb['uncanonicalize'].register("local_hard_sigmoid",
...
@@ -316,7 +316,7 @@ theano.compile.optdb['uncanonicalize'].register("local_hard_sigmoid",
class
ScalarSoftplus
(
scalar
.
UnaryScalarOp
):
class
ScalarSoftplus
(
scalar
.
UnaryScalarOp
):
"""
"""
This help numerical stability.
This help
s
numerical stability.
"""
"""
@staticmethod
@staticmethod
def
static_impl
(
x
):
def
static_impl
(
x
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论