# DebugIdentityV2

public final class **DebugIdentityV2** 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.

<br />

<br />

### Nested Classes

|---|---|---|---|
| class | [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) || Optional attributes for `https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2` |

### Public Methods

|---|---|
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#asOutput())() Returns the symbolic handle of a tensor. |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [circularBufferSize](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#circularBufferSize(java.lang.Long))(Long circularBufferSize) |
| static \<T\> [DebugIdentityV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2)\<T\> | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand<T>,%20org.tensorflow.op.core.DebugIdentityV2.Options...))([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> input, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) options) Factory method to create a class wrapping a new DebugIdentityV2 operation. |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [debugUrls](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#debugUrls(java.util.List<java.lang.String>))(List\<String\> debugUrls) |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [opName](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#opName(java.lang.String))(String opName) |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [output](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#output())() |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [outputSlot](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#outputSlot(java.lang.Long))(Long outputSlot) |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [tensorDebugMode](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#tensorDebugMode(java.lang.Long))(Long tensorDebugMode) |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [tfdbgContextId](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#tfdbgContextId(java.lang.String))(String tfdbgContextId) |
| static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) | [tfdbgRunId](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2#tfdbgRunId(java.lang.String))(String tfdbgRunId) |

### Inherited Methods

From class [org.tensorflow.op.PrimitiveOp](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp)

|---|---|
| final boolean | [equals](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#equals(java.lang.Object))(Object obj) |
| final int | [hashCode](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#hashCode())() |
| [Operation](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation) | [op](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#op())() Returns the underlying `https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation` |
| final String | [toString](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#toString())() |

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface [org.tensorflow.Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)

|---|---|
| abstract [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand#asOutput())() Returns the symbolic handle of a tensor. |

## Public Methods

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**asOutput**
()

Returns the symbolic handle of a 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.

<br />

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**circularBufferSize**
(Long circularBufferSize)

<br />

#### public static [DebugIdentityV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2)\<T\>
**create**
([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> input, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options) options)

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

##### Parameters

| scope | current scope |
| input | Input tensor, non-Reference type |
| options | carries optional attributes values |
|---|---|

##### Returns

- a new instance of DebugIdentityV2

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**debugUrls**
(List\<String\> debugUrls)

<br />

##### Parameters

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

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**opName**
(String opName)

<br />

##### Parameters

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

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**output**
()

<br />

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**outputSlot**
(Long outputSlot)

<br />

##### Parameters

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

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**tensorDebugMode**
(Long tensorDebugMode)

<br />

##### Parameters

| tensorDebugMode | TensorDebugMode enum value. See debug_event.proto for details. |
|---|---|

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**tfdbgContextId**
(String tfdbgContextId)

<br />

##### Parameters

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

#### public static [DebugIdentityV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/DebugIdentityV2.Options)
**tfdbgRunId**
(String tfdbgRunId)

<br />