提交 c802b3ed authored 作者: Frederic's avatar Frederic

Fix the default implementation signature function

上级 8d710a73
......@@ -100,7 +100,8 @@ class Optimizer(object):
print("%s%s %s id=%i" % (
(' ' * level), self.__class__.__name__, name, id(self)), file=stream)
def print_profile(self, prof):
@staticmethod
def print_profile(stream, prof, level=0):
if prof is not None:
raise NotImplementedError(
"The function print_profile must be overrided if the"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论