Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
5795760d
提交
5795760d
authored
2月 26, 2021
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
2月 26, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix aesara.gpuarray access that fails on Windows
上级
84936418
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
15 行删除
+13
-15
dnn.py
aesara/gpuarray/dnn.py
+6
-1
check_blas.py
aesara/misc/check_blas.py
+7
-3
opt.py
aesara/scan/opt.py
+0
-11
没有找到文件。
aesara/gpuarray/dnn.py
浏览文件 @
5795760d
...
@@ -66,7 +66,12 @@ except ImportError:
...
@@ -66,7 +66,12 @@ except ImportError:
WIN32_CUDNN_NAMES
=
[
"cudnn64_7.dll"
,
"cudnn64_6.dll"
,
"cudnn64_5.dll"
]
WIN32_CUDNN_NAMES
=
[
"cudnn64_7.dll"
,
"cudnn64_6.dll"
,
"cudnn64_5.dll"
]
if
sys
.
platform
==
"win32"
:
if
sys
.
platform
==
"win32"
:
aesara
.
gpuarray
.
pathparse
.
PathParser
(
config
.
dnn__bin_path
)
try
:
from
aesara.gpuarray.pathparse
import
PathParser
PathParser
(
config
.
dnn__bin_path
)
except
ImportError
:
pass
def
_load_lib
(
name
):
def
_load_lib
(
name
):
...
...
aesara/misc/check_blas.py
浏览文件 @
5795760d
...
@@ -78,9 +78,13 @@ def execute(execute=True, verbose=True, M=2000, N=2000, K=2000, iters=10, order=
...
@@ -78,9 +78,13 @@ def execute(execute=True, verbose=True, M=2000, N=2000, K=2000, iters=10, order=
f
()
# Ignore first function call to get representative time.
f
()
# Ignore first function call to get representative time.
if
execute
:
if
execute
:
sync
=
hasattr
(
aesara
,
"gpuarray"
)
and
isinstance
(
try
:
c
,
aesara
.
gpuarray
.
GpuArraySharedVariable
from
aesara.gpuarray
import
GpuArraySharedVariable
)
sync
=
isinstance
(
c
,
GpuArraySharedVariable
)
except
ImportError
:
sync
=
False
if
sync
:
if
sync
:
# Make sure we don't include the time from the first call
# Make sure we don't include the time from the first call
c
.
get_value
(
borrow
=
True
,
return_internal_type
=
True
)
.
sync
()
c
.
get_value
(
borrow
=
True
,
return_internal_type
=
True
)
.
sync
()
...
...
aesara/scan/opt.py
浏览文件 @
5795760d
...
@@ -1063,18 +1063,7 @@ class ScanInplaceOptimizer(GlobalOptimizer):
...
@@ -1063,18 +1063,7 @@ class ScanInplaceOptimizer(GlobalOptimizer):
def
apply
(
self
,
fgraph
):
def
apply
(
self
,
fgraph
):
# Depending on the value of gpua_flag, get the list of memory
# allocation ops that the optimization should be able to
# handle
alloc_ops
=
(
Alloc
,
AllocEmpty
)
alloc_ops
=
(
Alloc
,
AllocEmpty
)
if
self
.
gpua_flag
:
# gpuarray might be imported but not its GpuAlloc and
# GpuAllopEmpty ops.
try
:
alloc_ops
+=
(
aesara
.
gpuarray
.
GpuAlloc
,
aesara
.
gpuarray
.
GpuAllocEmpty
)
except
Exception
:
pass
nodes
=
fgraph
.
toposort
()[::
-
1
]
nodes
=
fgraph
.
toposort
()[::
-
1
]
scan_nodes
=
[
scan_nodes
=
[
x
x
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论