MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _skip_common_stack_elements

Function _skip_common_stack_elements

tensorflow/python/ops/template.py:234–239  ·  view source on GitHub ↗

Skips items that the target stacktrace shares with the base stacktrace.

(stacktrace, base_case)

Source from the content-addressed store, hash-verified

232
233
234def _skip_common_stack_elements(stacktrace, base_case):
235 """Skips items that the target stacktrace shares with the base stacktrace."""
236 for i, (trace, base) in enumerate(zip(stacktrace, base_case)):
237 if trace != base:
238 return stacktrace[i:]
239 return stacktrace[-1:]
240
241
242class Template(trackable.Trackable):

Callers 2

_call_funcMethod · 0.85
_call_funcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected