提交 2c67fd8b authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fixed bug in scan_perform.pyx

Scan_perform.pyx used not to zero out the output starting from the right point (when performing a while). This bug was detectable only in debug mode. The python version of scan was doing the right thing though, so this is just a matter of sync-ing the two versions. Note that all the changes in scan_perform.c where generated by cython, and as such they shouldn't need to be checked ( they are mostly because in the lab we have cython 0.14 instead of cython 0.13 which I used previously).
上级 13a54c99
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -63,7 +63,7 @@ from theano.sandbox import cuda
def get_version():
return 0.1
return 0.2
@cython.boundscheck(False)
def perform(
......@@ -433,7 +433,7 @@ def perform(
# expected to return 0 for all entries for which the gradient is
# not actually computed
elif store_steps[idx] > i - self.mintaps[idx]:
outs[idx][0][i+1-self.mintaps[idx]:] = 0
outs[idx][0][i-self.mintaps[idx]:] = 0
t_call = time.time() - t0_call
......
......@@ -14,7 +14,7 @@ logging.basicConfig(level=logging.DEBUG)
if config.compiledir not in sys.path:
sys.path.append(config.compiledir)
version = 0.1 # must match constant returned in function get_version()
version = 0.2 # must match constant returned in function get_version()
need_reload = False
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论