Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
272a4a5d
提交
272a4a5d
authored
4月 24, 2015
作者:
Sina Honari
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removing slice
上级
e8995c93
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
scan_op.py
theano/scan_module/scan_op.py
+8
-8
没有找到文件。
theano/scan_module/scan_op.py
浏览文件 @
272a4a5d
...
@@ -219,12 +219,12 @@ class Scan(PureOp):
...
@@ -219,12 +219,12 @@ class Scan(PureOp):
'function called by scan in each of its iterations) '
'function called by scan in each of its iterations) '
'the following error has been encountered: The '
'the following error has been encountered: The '
'
%
s
%
s (argument number
%
d) has dtype '
'
%
s
%
s (argument number
%
d) has dtype '
'
%
s and
%
d dimension(s). The corresponding
slic
e '
'
%
s and
%
d dimension(s). The corresponding
variabl
e '
'in the inner function of scan
%
s '
'in the inner function of scan
%
s '
'however has dtype
%
s and
%
d dimension(s). This '
'however has dtype
%
s and
%
d dimension(s). This '
'
slic
e in the inner function of scan should '
'
variabl
e in the inner function of scan should '
'have the same dtype and one fewer dimension '
'have the same dtype and one fewer dimension '
'compared to its corresponding
slic
e in the initial '
'compared to its corresponding
variabl
e in the initial '
'state (outputs_info in scan nomenclature). For example, '
'state (outputs_info in scan nomenclature). For example, '
'if the inner function of scan returns a vector '
'if the inner function of scan returns a vector '
'of size d and scan uses the values of '
'of size d and scan uses the values of '
...
@@ -233,9 +233,9 @@ class Scan(PureOp):
...
@@ -233,9 +233,9 @@ class Scan(PureOp):
'The first dimension of this '
'The first dimension of this '
'matrix corresponds to the number of previous time-steps '
'matrix corresponds to the number of previous time-steps '
'that scan uses in each of its iterations. '
'that scan uses in each of its iterations. '
'In order to solve this issue if the two
slices
currently '
'In order to solve this issue if the two
variable
currently '
'have the same dimensionality, you can increase the '
'have the same dimensionality, you can increase the '
'dimensionality of the
slic
e in the initial state of scan '
'dimensionality of the
varialb
e in the initial state of scan '
'by using dimshuffle or shape_padleft. '
'by using dimshuffle or shape_padleft. '
)
)
err_msg2
=
(
'When compiling the inner function of scan the '
err_msg2
=
(
'When compiling the inner function of scan the '
...
@@ -250,7 +250,7 @@ class Scan(PureOp):
...
@@ -250,7 +250,7 @@ class Scan(PureOp):
'the following error has been encountered: The '
'the following error has been encountered: The '
'initial state (`outputs_info` in scan nomenclature) '
'initial state (`outputs_info` in scan nomenclature) '
'of variable
%
s (argument number
%
d) has
%
d dimension(s), '
'of variable
%
s (argument number
%
d) has
%
d dimension(s), '
'while the corresponding
slic
e in the result of the inner '
'while the corresponding
variabl
e in the result of the inner '
'function of scan (`fn`) has
%
d dimension(s) (it should '
'function of scan (`fn`) has
%
d dimension(s) (it should '
'be one less than the initial state). For example, '
'be one less than the initial state). For example, '
'if the inner function of scan returns a vector '
'if the inner function of scan returns a vector '
...
@@ -260,9 +260,9 @@ class Scan(PureOp):
...
@@ -260,9 +260,9 @@ class Scan(PureOp):
'The first dimension of this '
'The first dimension of this '
'matrix corresponds to the number of previous time-steps '
'matrix corresponds to the number of previous time-steps '
'that scan uses in each of its iterations. '
'that scan uses in each of its iterations. '
'In order to solve this issue if the two
slices
currently '
'In order to solve this issue if the two
varialbe
currently '
'have the same dimensionality, you can increase the '
'have the same dimensionality, you can increase the '
'dimensionality of the
slic
e in the initial state of scan '
'dimensionality of the
variabl
e in the initial state of scan '
'by using dimshuffle or shape_padleft. '
'by using dimshuffle or shape_padleft. '
)
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论