Spec-Zone.ru › TensorFlow 2.3

tf.compat.v1.to_int32

Преобразование тензора к типу int32. (устарело)

tf.compat.v1.to_int32(
    x, name='ToInt32'
)
Предупреждение: ЭТА ФУНКЦИЯ УСТАРЕЛА. Она будет удалена в будущей версии. Инструкции по обновлению: Используйте tf.cast вместо неё.
Аргументы
x Tensor или SparseTensor или IndexedSlices.
name Имя операции (необязательно).
Возвращаемое значение
Tensor или SparseTensor или IndexedSlices с такой же формой, что и x, но типа int32.
Исключения
TypeError Если x нельзя преобразовать в int32.

© 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.3/api_docs/python/tf/compat/v1/to_int32

Spec-Zone.ru

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