MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / debug_str

Method debug_str

python/oneflow/support/high_order_bool.py:35–41  ·  view source on GitHub ↗
(self, ctx, display_result=True)

Source from the content-addressed store, hash-verified

33
34class BoolFunctor(object):
35 def debug_str(self, ctx, display_result=True):
36 if hasattr(self, "__debug_str__"):
37 if display_result:
38 return '"%s"[%s]' % (self.__debug_str__, self(ctx))
39 else:
40 return '"%s"' % self.__debug_str__
41 return self.verbose_debug_str(ctx, display_result=display_result)
42
43 def verbose_debug_str(self, ctx, display_result=True):
44 raise NotImplementedError

Callers 4

get_failed_infoFunction · 0.80
verbose_debug_strMethod · 0.80
verbose_debug_strMethod · 0.80
verbose_debug_strMethod · 0.80

Calls 2

verbose_debug_strMethod · 0.95
hasattrFunction · 0.85

Tested by

no test coverage detected