tf.raw_ops.ShapeN
Stay organized with collections
Save and categorize content based on your preferences.
Returns shape of tensors.
tf.raw_ops.ShapeN(
input,
out_type=tf.dtypes.int32
,
name=None
)
This operation returns N 1-D integer tensors representing shape of input[i]s
.
Args |
input
|
A list of at least 1 Tensor objects with the same type.
|
out_type
|
An optional tf.DType from: tf.int32, tf.int64 . Defaults to tf.int32 .
|
name
|
A name for the operation (optional).
|
Returns |
A list with the same length as input of Tensor objects with type out_type .
|
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.ShapeN\n\n\u003cbr /\u003e\n\nReturns shape of tensors.\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.ShapeN`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ShapeN)\n\n\u003cbr /\u003e\n\n tf.raw_ops.ShapeN(\n input,\n out_type=../../tf/dtypes#int32,\n name=None\n )\n\nThis operation returns N 1-D integer tensors representing shape of `input[i]s`.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|-----------------------------------------------------------------------------------------------------------------------|\n| `input` | A list of at least 1 `Tensor` objects with the same type. |\n| `out_type` | An optional [`tf.DType`](../../tf/dtypes/DType) from: `tf.int32, tf.int64`. Defaults to [`tf.int32`](../../tf#int32). |\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 list with the same length as `input` of `Tensor` objects with type `out_type`. ||\n\n\u003cbr /\u003e"]]