提交 272a4a5d authored 作者: Sina Honari's avatar Sina Honari

removing slice

上级 e8995c93
......@@ -219,12 +219,12 @@ class Scan(PureOp):
'function called by scan in each of its iterations) '
'the following error has been encountered: The '
'%s %s (argument number %d) has dtype '
'%s and %d dimension(s). The corresponding slice '
'%s and %d dimension(s). The corresponding variable '
'in the inner function of scan %s '
'however has dtype %s and %d dimension(s). This '
'slice in the inner function of scan should '
'variable in the inner function of scan should '
'have the same dtype and one fewer dimension '
'compared to its corresponding slice in the initial '
'compared to its corresponding variable in the initial '
'state (outputs_info in scan nomenclature). For example, '
'if the inner function of scan returns a vector '
'of size d and scan uses the values of '
......@@ -233,9 +233,9 @@ class Scan(PureOp):
'The first dimension of this '
'matrix corresponds to the number of previous time-steps '
'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 '
'dimensionality of the slice in the initial state of scan '
'dimensionality of the varialbe in the initial state of scan '
'by using dimshuffle or shape_padleft. '
)
err_msg2 = ('When compiling the inner function of scan the '
......@@ -250,7 +250,7 @@ class Scan(PureOp):
'the following error has been encountered: The '
'initial state (`outputs_info` in scan nomenclature) '
'of variable %s (argument number %d) has %d dimension(s), '
'while the corresponding slice in the result of the inner '
'while the corresponding variable in the result of the inner '
'function of scan (`fn`) has %d dimension(s) (it should '
'be one less than the initial state). For example, '
'if the inner function of scan returns a vector '
......@@ -260,9 +260,9 @@ class Scan(PureOp):
'The first dimension of this '
'matrix corresponds to the number of previous time-steps '
'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 '
'dimensionality of the slice in the initial state of scan '
'dimensionality of the variable in the initial state of scan '
'by using dimshuffle or shape_padleft. '
)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论