[null,null,["Last updated 2024-06-07 UTC."],[],[],null,["# tf.keras.ops.is_tensor\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#L613-L626) |\n\nCheck whether the given object is a tensor. \n\n tf.keras.ops.is_tensor(\n x\n )\n\n| **Note:** This checks for backend specific tensors so passing a TensorFlow tensor would return `False` if your backend is PyTorch or JAX.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----|-------------|\n| `x` | A variable. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| `True` if `x` is a tensor, otherwise `False`. ||\n\n\u003cbr /\u003e"]]