Spec-Zone.ru › TensorFlow 2.3

tf.compat.v1.to_int64

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

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

© 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_int64

Spec-Zone.ru

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