<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/ops/numpy_ops/np_array_ops.py#L91-L95) |

TensorFlow variant of NumPy's `ones_like`.

    tf.experimental.numpy.ones_like(
        a, dtype=None
    )

Unsupported arguments: `order`, `subok`, `shape`, `device`.

See the NumPy documentation for [`numpy.ones_like`](https://numpy.org/doc/stable/reference/generated/numpy.ones_like.html).