提交 3b5ac111 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix crash when coping a Theano function with profiling enabled. fix gh-5676

上级 b2357e9d
......@@ -670,7 +670,7 @@ class Function(object):
if name:
message = name
else:
message = str(maker.profile.message) + " copy"
message = str(profile.message) + " copy"
profile = theano.compile.profiling.ProfileStats(message=message)
# profile -> object
elif type(profile) == str:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论