[[["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-06-07 UTC."],[],[],null,["# tf.keras.ops.shape\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/keras-team/keras/tree/v3.3.3/keras/src/ops/core.py#L414-L438) |\n\nGets the shape of the tensor input. \n\n tf.keras.ops.shape(\n x\n )\n\n| **Note:** On the TensorFlow backend, when `x` is a [`tf.Tensor`](../../../tf/Tensor) with dynamic shape, dimensions which are dynamic in the context of a compiled function will have a [`tf.Tensor`](../../../tf/Tensor) value instead of a static integer value.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----|---------------------------------------------------------------------------------------|\n| `x` | A tensor. This function will try to access the `shape` attribute of the input tensor. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A tuple of integers or None values, indicating the shape of the input tensor. ||\n\n\u003cbr /\u003e\n\n#### Example:\n\n x = keras.zeros((8, 12))\n keras.ops.shape(x)\n (8, 12)"]]