# ParallelConcat

public final class **ParallelConcat** Concatenates a list of \`N\` tensors along the first dimension.


The input tensors are all required to have size 1 in the first dimension.


For example:

    # 'x' is [[1, 4]]
     # 'y' is [[2, 5]]
     # 'z' is [[3, 6]]
     parallel_concat([x, y, z]) =&gt; [[1, 4], [2, 5], [3, 6]]  # Pack along first dim.
     
The difference between concat and parallel_concat is that concat requires all of the inputs be computed before the operation will begin but doesn't require that the input shapes be known during graph construction. Parallel concat will copy pieces of the input into the output as they become available, in some situations this can provide a performance benefit.

<br />

<br />

<br />

### 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/ParallelConcat#asOutput())() Returns the symbolic handle of a tensor. |
| static \<T\> [ParallelConcat](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParallelConcat)\<T\> | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParallelConcat#create(org.tensorflow.op.Scope,%20java.lang.Iterable<org.tensorflow.Operand<T>>,%20org.tensorflow.Shape))([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, Iterable\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\>\> values, [Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape) shape) Factory method to create a class wrapping a new ParallelConcat operation. |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [output](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParallelConcat#output())() The concatenated tensor. |

### 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 [ParallelConcat](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParallelConcat)\<T\>
**create**
([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, Iterable\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\>\> values, [Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape) shape)

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

##### Parameters

| scope | current scope |
| values | Tensors to be concatenated. All must have size 1 in the first dimension and same shape. |
| shape | the final shape of the result; should be equal to the shapes of any input but with the number of input values in the first dimension. |
|---|---|

##### Returns

- a new instance of ParallelConcat

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

The concatenated tensor.