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