tensorflow / 2.9.1 / experimental / numpy / array.html /

tf.experimental.numpy.array

TensorFlow variant of NumPy's array.

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.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/experimental/numpy/array