tf.experimental.numpy.array
TensorFlow variant of NumPy's array
.
tf.experimental.numpy.array(
val, dtype=None, copy=True, ndmin=0
)
Since Tensors are immutable, a copy is made only if val is placed on a
different device than the current one. Even if copy
is False, a new Tensor
may need to be built to satisfy dtype
and ndim
. This is used only if val
is an ndarray or a Tensor.
See the NumPy documentation for numpy.array
.
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. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[]]