DebugIdentity

public final class DebugIdentity

Debug Identity V2 Op.

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.

Nested Classes

class DebugIdentity.Options Optional attributes for DebugIdentity  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of the tensor.
static DebugIdentity.Options
circularBufferSize(Long circularBufferSize)
static <T extends TType> DebugIdentity<T>
create(Scope scope, Operand<T> input, Options... options)
Factory method to create a class wrapping a new DebugIdentity operation.
static DebugIdentity.Options
debugUrls(List<String> debugUrls)
static DebugIdentity.Options
opName(String opName)
Output<T>
output()
static DebugIdentity.Options
outputSlot(Long outputSlot)
static DebugIdentity.Options
tensorDebugMode(Long tensorDebugMode)
static DebugIdentity.Options
tfdbgContextId(String tfdbgContextId)
static DebugIdentity.Options
tfdbgRunId(String tfdbgRunId)

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "DebugIdentityV2"

Public Methods

public Output<T> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static DebugIdentity.Options circularBufferSize (Long circularBufferSize)

public static DebugIdentity<T> create (Scope scope, Operand<T> input, Options... options)

Factory method to create a class wrapping a new DebugIdentity operation.

Parameters
scope current scope
input Input tensor, non-Reference type
options carries optional attributes values
Returns
  • a new instance of DebugIdentity

public static DebugIdentity.Options debugUrls (List<String> debugUrls)

Parameters
debugUrls List of URLs to debug targets, e.g., file:///foo/tfdbg_dump.

public static DebugIdentity.Options opName (String opName)

Parameters
opName Optional. Name of the op that the debug op is concerned with. Used only for single-tensor trace.

public Output<T> output ()

public static DebugIdentity.Options outputSlot (Long outputSlot)

Parameters
outputSlot Optional. Output slot index of the tensor that the debug op is concerned with. Used only for single-tensor trace.

public static DebugIdentity.Options tensorDebugMode (Long tensorDebugMode)

Parameters
tensorDebugMode TensorDebugMode enum value. See debug_event.proto for details.

public static DebugIdentity.Options tfdbgContextId (String tfdbgContextId)

Parameters
tfdbgContextId A tfdbg-generated ID for the context that the op belongs to, e.g., a concrete compiled tf.function.

public static DebugIdentity.Options tfdbgRunId (String tfdbgRunId)