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

Make DebugMode raise an error if profiling is activated as it don't support it.

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