Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
8bd84e5e
提交
8bd84e5e
authored
6月 14, 2011
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change the contract for output_storage in the documentation
上级
ae881113
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
8 行删除
+22
-8
debugmode.py
theano/compile/debugmode.py
+1
-1
op.py
theano/gof/op.py
+21
-7
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
8bd84e5e
...
@@ -1128,7 +1128,7 @@ class _Linker(gof.link.LocalLinker):
...
@@ -1128,7 +1128,7 @@ class _Linker(gof.link.LocalLinker):
# Debug Mode complains if someone provides memory buffers
# Debug Mode complains if someone provides memory buffers
# for the o
tuputs (
where the linker can choose to store the
# for the o
utputs (
where the linker can choose to store the
# outputs). Since this is what scan does by default, we will
# outputs). Since this is what scan does by default, we will
# delete the output_storage for now. This code is going to
# delete the output_storage for now. This code is going to
# change when someone decides to go over the debug code
# change when someone decides to go over the debug code
...
...
theano/gof/op.py
浏览文件 @
8bd84e5e
...
@@ -194,8 +194,13 @@ class CLinkerOp(CLinkerObject):
...
@@ -194,8 +194,13 @@ class CLinkerOp(CLinkerObject):
`PyObject` variable pointing to that input.
`PyObject` variable pointing to that input.
`outputs` : list of strings
`outputs` : list of strings
Each string is the name of a `PyObject` pointer where the Op should store its
Each string is the name of a `PyObject` pointer where the Op should store its
variables. The `CLinker` guarantees that on entry to this code block, each pointer
variables. This pointer could be NULL, or contain an object of the right
is either NULL or is unchanged from the end of the previous execution.
Type (in the Theano sense) to store the output of the computation.
For instance, for a TensorVariable, it will be a Numpy ndarray with
the right number of dimensions, and the right dtype. However, its
shape, or stride pattern, could not be adequate.
It could be unchanged from the end of the previous execution, or allocated
by another Op, or by the Mode.
`sub` : dict of strings
`sub` : dict of strings
extra symbols defined in `CLinker` sub symbols (such as 'fail').
extra symbols defined in `CLinker` sub symbols (such as 'fail').
WRITEME
WRITEME
...
@@ -224,8 +229,13 @@ class CLinkerOp(CLinkerObject):
...
@@ -224,8 +229,13 @@ class CLinkerOp(CLinkerObject):
`PyObject` variable pointing to that input.
`PyObject` variable pointing to that input.
`outputs` : list of strings
`outputs` : list of strings
Each string is the name of a `PyObject` pointer where the Op should store its
Each string is the name of a `PyObject` pointer where the Op should store its
variables. The `CLinker` guarantees that on entry to this code block, each pointer
variables. This pointer could be NULL, or contain an object of the right
is either NULL or is unchanged from the end of the previous execution.
Type (in the Theano sense) to store the output of the computation.
For instance, for a TensorVariable, it will be a Numpy ndarray with
the right number of dimensions, and the right dtype. However, its
shape, or stride pattern, could not be adequate.
It could be unchanged from the end of the previous execution, or allocated
by another Op, or by the Mode.
`sub` : dict of strings
`sub` : dict of strings
extra symbols defined in `CLinker` sub symbols (such as 'fail').
extra symbols defined in `CLinker` sub symbols (such as 'fail').
WRITEME
WRITEME
...
@@ -431,9 +441,13 @@ class PureOp(object):
...
@@ -431,9 +441,13 @@ class PureOp(object):
list of mutable 1-element lists (do not change the length of these lists)
list of mutable 1-element lists (do not change the length of these lists)
The `output_storage` list might contain data. If an element of
The `output_storage` list might contain data. If an element of
output_storage is not None, it is guaranteed that it was produced
output_storage is not None, it has to be of the right type,
by a previous call to impl and impl is free to reuse it as it
for instance, for a TensorVariable, it has to be a Numpy ndarray,
sees fit.
with the right number of dimensions, and the correct dtype.
Its shape and stride pattern, can be arbitrary. It not is
guaranteed that it was produced by a previous call to impl. It
could be allocated by another Op impl is free to reuse it as it
sees fit, or to discard it and allocate new memory.
:Exceptions:
:Exceptions:
- `MethodNotDefined`: the subclass does not override this method
- `MethodNotDefined`: the subclass does not override this method
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论