Spec-Zone.ru › TensorFlow 1.15

tf.keras.backend.set_image_data_format

View source on GitHub

Устанавливает значение соглашения о формате данных изображения.

Просмотр псевдонимов

Псевдонимы для миграции

См. Руководство по миграции для получения дополнительной информации.

tf.compat.v1.keras.backend.set_image_data_format, `tf.compat.v2.keras.backend.set_image_data_format`

tf.keras.backend.set_image_data_format(
    data_format
)
Аргументы
data_format строка. 'channels_first' или 'channels_last'.

Пример: python from keras import backend as K K.image_data_format() >>> 'channels_first' K.set_image_data_format('channels_last') K.image_data_format() >>> 'channels_last'

Возбуждает
ValueError В случае неверного значения data_format.

© 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/r1.15/api_docs/python/tf/keras/backend/set_image_data_format

Spec-Zone.ru

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