Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
127dca84
提交
127dca84
authored
3月 31, 2009
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
差异文件
merge
上级
0c6696f8
399c0721
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
+4
-3
module.txt
doc/basic_tutorial/module.txt
+2
-1
function_module.py
theano/compile/function_module.py
+0
-1
module.py
theano/compile/module.py
+2
-1
没有找到文件。
doc/basic_tutorial/module.txt
浏览文件 @
127dca84
...
@@ -80,7 +80,8 @@ represents an expression *result*.
...
@@ -80,7 +80,8 @@ represents an expression *result*.
Here we declare a Method. The three arguments are as follow:
Here we declare a Method. The three arguments are as follow:
* **inputs**: a list of input Variables
* **inputs**: a list of input Variables
* **outputs**: a list of output Variables
* **outputs**: a list of output Variables, or ``None``. ``None`` is equivalent
to returning an empty list of outputs.
* **updates**: a dictionary mapping member Variables to Variables. When we
* **updates**: a dictionary mapping member Variables to Variables. When we
call the function that this Method compiles to, it will replace (update) the
call the function that this Method compiles to, it will replace (update) the
values associated with the member Variables.
values associated with the member Variables.
...
...
theano/compile/function_module.py
浏览文件 @
127dca84
...
@@ -792,7 +792,6 @@ def function(inputs, outputs, mode=None, accept_inplace = False):
...
@@ -792,7 +792,6 @@ def function(inputs, outputs, mode=None, accept_inplace = False):
"""
"""
mode
=
mode
if
mode
is
not
None
else
mode_module
.
default_mode
mode
=
mode
if
mode
is
not
None
else
mode_module
.
default_mode
print
>>
sys
.
stderr
,
"INFO: compiling function with mode"
,
mode
inputs
=
map
(
convert_function_input
,
inputs
)
inputs
=
map
(
convert_function_input
,
inputs
)
if
outputs
is
None
:
if
outputs
is
None
:
...
...
theano/compile/module.py
浏览文件 @
127dca84
...
@@ -149,7 +149,6 @@ class Component(object):
...
@@ -149,7 +149,6 @@ class Component(object):
memo
=
{}
memo
=
{}
self
.
allocate
(
memo
)
self
.
allocate
(
memo
)
rval
=
self
.
build
(
mode
,
memo
)
rval
=
self
.
build
(
mode
,
memo
)
print
>>
sys
.
stderr
,
"INFO: compiling component with mode"
,
mode
return
rval
return
rval
def
make
(
self
,
*
args
,
**
kwargs
):
def
make
(
self
,
*
args
,
**
kwargs
):
...
@@ -348,6 +347,8 @@ class Method(Component):
...
@@ -348,6 +347,8 @@ class Method(Component):
"""
"""
super
(
Method
,
self
)
.
__init__
()
super
(
Method
,
self
)
.
__init__
()
if
outputs
is
None
:
outputs
=
[]
self
.
inputs
=
inputs
self
.
inputs
=
inputs
self
.
outputs
=
outputs
self
.
outputs
=
outputs
self
.
updates
=
dict
(
updates
)
self
.
updates
=
dict
(
updates
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论