提交 f63ec912 authored 作者: Frederic Bastien's avatar Frederic Bastien

Profile can be None or False

上级 890db8de
...@@ -2192,7 +2192,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions ...@@ -2192,7 +2192,7 @@ class _Maker(FunctionMaker): # inheritance buys a few helper functions
name=None): name=None):
self.mode = mode self.mode = mode
self.profile = profile self.profile = profile
if profile is not None: if profile:
raise Exception("DebugMode do not support profiling.") raise Exception("DebugMode do not support profiling.")
optimizer = mode.optimizer optimizer = mode.optimizer
# Handle the case where inputs and/or outputs is a single # Handle the case where inputs and/or outputs is a single
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论