tf.compat.v1.flags.tf_decorator.tf_stack.extract_stack_file_and_line
A version of extract_stack that only returns filenames and line numbers.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
`tf.compat.v1.app.flags.tf_decorator.tf_stack.extract_stack_file_and_line`
tf.compat.v1.flags.tf_decorator.tf_stack.extract_stack_file_and_line(
max_length=1000
)
Callers often only require filenames and line numbers, and do not need the
additional information gathered by extract_stack, as they never call
convert_stack.
As a further optimisation, we allow users to specify a limit on the number of
frames examined.
Args |
max_length
|
The maximum length of stack to extract.
|
Returns |
A list of FileAndLine objects corresponding to the call stack of the current
thread.
|
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."],[],[]]