tf.shape_n
Stay organized with collections
Save and categorize content based on your preferences.
Returns shape of tensors.
tf.shape_n(
input, out_type=tf.dtypes.int32, name=None
)
Args |
input
|
A list of at least 1 Tensor object with the same type.
|
out_type
|
The specified output type of the operation (int32 or int64 ).
Defaults to tf.int32 (optional).
|
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.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.shape_n\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/shape_n) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/ops/array_ops.py#L489-L505) |\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.shape_n`](/api_docs/python/tf/shape_n)\n\n\u003cbr /\u003e\n\n tf.shape_n(\n input, out_type=tf.dtypes.int32, name=None\n )\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` object with the same type. |\n| `out_type` | The specified output type of the operation (`int32` or `int64`). Defaults to [`tf.int32`](../tf#int32)(optional). |\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"]]