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.

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