Spec-Zone.ru › TensorFlow

tf.keras.ops.array

Create a tensor.

View aliases

Main aliases

tf.keras.ops.numpy.array

tf.keras.ops.array(
    x, dtype=None
)
Args
x Input tensor.
dtype The desired data-type for the tensor.
Returns
A tensor.

Examples:

keras.ops.array([1, 2, 3])
array([1, 2, 3], dtype=int32)
keras.ops.array([1, 2, 3], dtype="float32")
array([1., 2., 3.], dtype=float32)

© 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/api_docs/python/tf/keras/ops/array

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API