提交 2ba562ae authored 作者: Frederic's avatar Frederic 提交者: ChienliMa

Fix crash with profiling and fct copy

上级 255cc306
...@@ -690,7 +690,8 @@ class ProfileStats(object): ...@@ -690,7 +690,8 @@ class ProfileStats(object):
print('', file=file) print('', file=file)
# The validation time is a subset of optimizer_time # The validation time is a subset of optimizer_time
assert self.validate_time < self.optimizer_time if self.optimizer_time > 0:
assert self.validate_time < self.optimizer_time
def summary_globals(self, file): def summary_globals(self, file):
print('Time in all call to theano.grad() %es' % print('Time in all call to theano.grad() %es' %
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论