tf.raw_ops.DebugIdentityV2
Debug Identity V2 Op.
tf.raw_ops.DebugIdentityV2(
input, tfdbg_context_id='', op_name='', output_slot=-1,
tensor_debug_mode=-1, debug_urls=[], circular_buffer_size=1000,
tfdbg_run_id='', name=None
)
Provides an identity mapping from input to output, while writing the content of the input tensor by calling DebugEventsWriter.
The semantics of the input tensor depends on tensor_debug_mode. In typical usage, the input tensor comes directly from the user computation only when graph_debug_mode is FULL_TENSOR (see protobuf/debug_event.proto for a list of all the possible values of graph_debug_mode). For the other debug modes, the input tensor should be produced by an additional op or subgraph that computes summary information about one or more tensors.
| Args | |
|---|---|
input | A Tensor. Input tensor, non-Reference type |
tfdbg_context_id | An optional string. Defaults to "". A tfdbg-generated ID for the context that the op belongs to, e.g., a concrete compiled tf.function. |
op_name | An optional string. Defaults to "". Optional. Name of the op that the debug op is concerned with. Used only for single-tensor trace. |
output_slot | An optional int. Defaults to -1. Optional. Output slot index of the tensor that the debug op is concerned with. Used only for single-tensor trace. |
tensor_debug_mode | An optional int. Defaults to -1. TensorDebugMode enum value. See debug_event.proto for details. |
debug_urls | An optional list of strings. Defaults to []. List of URLs to debug targets, e.g., file:///foo/tfdbg_dump. |
circular_buffer_size | An optional int. Defaults to 1000. |
tfdbg_run_id | An optional string. Defaults to "". |
name | A name for the operation (optional). |
| Returns | |
|---|---|
A Tensor. Has the same type as input. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/DebugIdentityV2