# TPUPartitionedOutputV2

public final class **TPUPartitionedOutputV2** An op that demultiplexes a tensor to be sharded by XLA to a list of partitioned


outputs outside the XLA computation. Supports ND sharding.

<br />

### Public Methods

|---|---|
| static \<T\> [TPUPartitionedOutputV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/TPUPartitionedOutputV2)\<T\> | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/TPUPartitionedOutputV2#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand<T>,%20java.lang.Long,%20java.util.List<java.lang.Long>))([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\> inputs, Long numSplits, List\<Long\> partitionDims) Factory method to create a class wrapping a new TPUPartitionedOutputV2 operation. |
| Iterator\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\>\> | [iterator](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/TPUPartitionedOutputV2#iterator())() |
| List\<[Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>\> | [output](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/TPUPartitionedOutputV2#output())() A list of partitioned outputs which have the same shape. |

### 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 java.lang.Iterable

|---|---|
| void | forEach(Consumer\<? super T\> arg0) |
| abstract Iterator\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\>\> | iterator() |
| Spliterator\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\>\> | spliterator() |

## Public Methods

#### public static [TPUPartitionedOutputV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/TPUPartitionedOutputV2)\<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\> inputs, Long numSplits, List\<Long\> partitionDims)

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

##### Parameters

| scope | current scope |
| inputs | A tensor which represents the full shape of partitioned tensors. |
| partitionDims | A list of integers describing how each dimension is partitioned. Emptiness indicates the inputs are replicated. |
|---|---|

##### Returns

- a new instance of TPUPartitionedOutputV2

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

<br />

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

A list of partitioned outputs which have the same shape.