提交 0cf4a974 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fixed bug in applying shape_padleft

上级 ce8e762b
...@@ -363,7 +363,7 @@ def scan(fn, ...@@ -363,7 +363,7 @@ def scan(fn,
lengths.append(scalar_shared(numpy.int64(0), lengths.append(scalar_shared(numpy.int64(0),
name = 'l%d' % pos)) name = 'l%d' % pos))
arg_info['initial'] = scan_utils.expand(tensor.unbroadcast( arg_info['initial'] = scan_utils.expand(tensor.unbroadcast(
tensor.shape_padfelt(state['initial'], 0), T)) tensor.shape_padleft(arg_info['initial']),0), T)
elif arg_info.get('taps', None): elif arg_info.get('taps', None):
if numpy.any(numpy.array(arg_info.get('taps', [])) > 0): if numpy.any(numpy.array(arg_info.get('taps', [])) > 0):
# Make sure we do not have requests for future values of a # Make sure we do not have requests for future values of a
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论