# tf.raw_ops.ConcatOffset

<br />

Computes offsets of concat inputs within its output.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.ConcatOffset`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ConcatOffset)

<br />

    tf.raw_ops.ConcatOffset(
        concat_dim, shape, name=None
    )

#### For example:

    x = [2, 2, 7]
    y = [2, 3, 7]
    z = [2, 9, 7]
    offsets = concat_offset(1, [x, y, z])
    [list(off.numpy()) for off in offsets]
    [[0, 0, 0], [0, 2, 0], [0, 5, 0]]

This is typically used by gradient computations for a concat operation.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `concat_dim` | A `Tensor` of type `int32`. The dimension along which to concatenate. |
| `shape` | A list of at least 2 `Tensor` objects with type `int32`. The `N` int32 vectors representing shape of tensors being concatenated. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list with the same length as `shape` of `Tensor` objects with type `int32`. ||

<br />