tf.raw_ops.AssignVariableXlaConcatND
Stay organized with collections
Save and categorize content based on your preferences.
Concats input tensor across all dimensions.
tf.raw_ops.AssignVariableXlaConcatND(
resource, 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 writes the merged tensor without
paddings to the resource variable.
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 |
resource
|
A Tensor of type resource .
Resource variable for concatenated input tensors across all dimensions.
}
in_arg {
name: "inputs"
description: <
|
inputs
|
A list of at least 1 Tensor objects with the same type.
|
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 |
The created Operation.
|
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 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]