<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#L234-L243) |

TensorFlow variant of NumPy's `asarray`.

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

### Used in the notebooks

| Used in the guide |
|---|
| - [NumPy API on TensorFlow](https://www.tensorflow.org/guide/tf_numpy) |

Unsupported arguments: `order`, `device`, `copy`, `like`.

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