Spec-Zone.ru › TensorFlow 2.3

tf.IndexedSlicesSpec

Просмотреть исходный код на GitHub

Спецификация типа для tf.IndexedSlices.

Наследуется от: TypeSpec

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

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

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

tf.compat.v1.IndexedSlicesSpec

tf.IndexedSlicesSpec(
    shape=None, dtype=tf.dtypes.float32, indices_dtype=tf.dtypes.int64,
    dense_shape_dtype=None, indices_shape=None
)
Аргументы
shape Плотную форму IndexedSlices, или None для разрешения любой плотной формы.
dtype tf.DType значений в IndexedSlices.
indices_dtype tf.DType индексов в indices в IndexedSlices. Один из tf.int32 или tf.int64.
dense_shape_dtype tf.DType элементов в dense_shape в IndexedSlices. Один из tf.int32, tf.int64 или None (если у IndexedSlices нет тензора dense_shape).
indices_shape Форма компонента indices, которая указывает, сколько срезов в IndexedSlices.
Атрибуты
value_type

Методы

is_compatible_with

Просмотреть исходный код

is_compatible_with(
    spec_or_value
)

Возвращает true, если spec_or_value совместим с этим TypeSpec.

most_specific_compatible_type

Просмотреть исходный код

most_specific_compatible_type(
    other
)

Возвращает наиболее специфичную TypeSpec, совместимую с self и other.

Аргументы
other A TypeSpec.
Исключения
ValueError Если нет TypeSpec, совместимого с self и other.

__eq__

Просмотреть исходный код

__eq__(
    other
)

Возвращает self==value.

__ne__

Просмотреть исходный код

__ne__(
    other
)

Возвращает self!=value.

© 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/IndexedSlicesSpec

Spec-Zone.ru

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