Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4af12379
提交
4af12379
authored
5月 17, 2022
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
6月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove xrange usage in scan_perform.pyx
上级
7890a34f
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
scan_perform.c
aesara/scan/c_code/scan_perform.c
+0
-0
scan_perform.pyx
aesara/scan/scan_perform.pyx
+3
-3
scan_perform_ext.py
aesara/scan/scan_perform_ext.py
+1
-1
没有找到文件。
aesara/scan/c_code/scan_perform.c
浏览文件 @
4af12379
差异被折叠。
点击展开。
aesara/scan/scan_perform.pyx
浏览文件 @
4af12379
...
@@ -59,7 +59,7 @@ from aesara.scan.utils import InnerFunctionError
...
@@ -59,7 +59,7 @@ from aesara.scan.utils import InnerFunctionError
def get_version():
def get_version():
return 0.31
6
return 0.31
7
@cython.boundscheck(False)
@cython.boundscheck(False)
def perform(
def perform(
...
@@ -369,7 +369,7 @@ def perform(
...
@@ -369,7 +369,7 @@ def perform(
# the execution of the function. Also keep pointers to their data to
# the execution of the function. Also keep pointers to their data to
# be able to detect cases where outputs reused the allocated object
# be able to detect cases where outputs reused the allocated object
# but alter the memory region they refer to.
# but alter the memory region they refer to.
for idx in
x
range(nb_mitmot_in):
for idx in range(nb_mitmot_in):
var = inner_input_storage[idx + n_seqs][0]
var = inner_input_storage[idx + n_seqs][0]
old_mitmot_input_storage[idx] = var
old_mitmot_input_storage[idx] = var
...
@@ -397,7 +397,7 @@ def perform(
...
@@ -397,7 +397,7 @@ def perform(
# 5.3 Copy over the values for mit_mot outputs
# 5.3 Copy over the values for mit_mot outputs
mitmot_inp_offset = 0
mitmot_inp_offset = 0
mitmot_out_idx = 0
mitmot_out_idx = 0
for j in
x
range(n_mit_mot):
for j in range(n_mit_mot):
for k in mit_mot_out_slices[j]:
for k in mit_mot_out_slices[j]:
if mitmots_preallocated[<unsigned int>mitmot_out_idx]:
if mitmots_preallocated[<unsigned int>mitmot_out_idx]:
# This output tap has been preallocated.
# This output tap has been preallocated.
...
...
aesara/scan/scan_perform_ext.py
浏览文件 @
4af12379
...
@@ -23,7 +23,7 @@ if not config.cxx:
...
@@ -23,7 +23,7 @@ if not config.cxx:
_logger
=
logging
.
getLogger
(
"aesara.scan.scan_perform"
)
_logger
=
logging
.
getLogger
(
"aesara.scan.scan_perform"
)
version
=
0.31
6
# must match constant returned in function get_version()
version
=
0.31
7
# must match constant returned in function get_version()
need_reload
=
False
need_reload
=
False
scan_perform
:
Optional
[
ModuleType
]
=
None
scan_perform
:
Optional
[
ModuleType
]
=
None
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论