tf.compat.v1.flags.tf_decorator.tf_stack.convert_stack
Converts a stack extracted using extract_stack() to a traceback stack.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.app.flags.tf_decorator.tf_stack.convert_stack`
tf.compat.v1.flags.tf_decorator.tf_stack.convert_stack(
stack, include_func_start_lineno=False
)
Args |
stack
|
A list of n 5-tuples,
(filename, lineno, name, frame_globals, func_start_lineno).
|
include_func_start_lineno
|
True if function start line number should be
included as the 5th entry in return tuples.
|
Returns |
A tuple of n 4-tuples or 5-tuples
(filename, lineno, name, code, [optional: func_start_lineno]), where the
code tuple element is calculated from the corresponding elements of the
input tuple.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[]]