tf.raw_ops.XlaConcatND
Stay organized with collections
Save and categorize content based on your preferences.
Concats input tensor across all dimensions.
tf.raw_ops.XlaConcatND(
inputs, num_concats, paddings=[], name=None
)
An op which merges slices the input tensor based on the given num_splits
attribute, strips paddings optionally, and returns the merged tensor without
paddings.
This op may be generated via the TPU bridge.
For example, with input
tensor:
[[0, 1],
[4, 5]]
[[2, 3],
[6, 7]]
[[8, 9],
[12, 13]]
[[10, 11],
[14, 15]]
num_splits
:
[2, 2]
and paddings
:
[1, 1]
the expected outputs
is:
[[0, 1, 2],
[4, 5, 6],
[8, 9, 10]]
Args |
inputs
|
A list of at least 1 Tensor objects with the same type.
Input tensor slices in row-major order to merge across all dimensions. All
inputs must have the same shape.
}
out_arg {
name: "output"
description: <
|
num_concats
|
A list of ints . Number of ways to merge per dimension.
|
paddings
|
An optional list of ints . Defaults to [] .
Optional list of right paddings per dimension to strip from the final merged
tensor. These paddings must not exceed the dimension size of the merged result
prior to stripping paddings.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor . Has the same type as inputs .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.raw_ops.XlaConcatND\n\n\u003cbr /\u003e\n\nConcats input tensor across all dimensions.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.XlaConcatND`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/XlaConcatND)\n\n\u003cbr /\u003e\n\n tf.raw_ops.XlaConcatND(\n inputs, num_concats, paddings=[], name=None\n )\n\nAn op which merges slices the input tensor based on the given num_splits\nattribute, strips paddings optionally, and returns the merged tensor without\npaddings.\n\nThis op may be generated via the TPU bridge.\n\nFor example, with `input` tensor: \n\n [[0, 1],\n [4, 5]]\n [[2, 3],\n [6, 7]]\n [[8, 9],\n [12, 13]]\n [[10, 11],\n [14, 15]]\n\n`num_splits`: \n\n [2, 2]\n\nand `paddings`: \n\n [1, 1]\n\nthe expected `outputs` is: \n\n [[0, 1, 2],\n [4, 5, 6],\n [8, 9, 10]]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `inputs` | A list of at least 1 `Tensor` objects with the same type. Input tensor slices in row-major order to merge across all dimensions. All inputs must have the same shape. } out_arg { name: \"output\" description: \\\u003c |\n| `num_concats` | A list of `ints`. Number of ways to merge per dimension. |\n| `paddings` | An optional list of `ints`. Defaults to `[]`. Optional list of right paddings per dimension to strip from the final merged tensor. These paddings must not exceed the dimension size of the merged result prior to stripping paddings. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor`. Has the same type as `inputs`. ||\n\n\u003cbr /\u003e"]]