Spec-Zone.ru › TensorFlow C++

tensorflow::ops::TopK::Атрибуты

#include <nn_ops.h>

Дополнительные атрибуты для TopK.

Обзор

Публичные атрибуты
index_type_ = DT_INT32
DataType
sorted_ = true
bool
Публичные функции
IndexType(DataType x)
TF_MUST_USE_RESULT Attrs
По умолчанию DT_INT32.
Sorted(bool x)
TF_MUST_USE_RESULT Attrs
Если true, то результирующие k элементы будут отсортированы по значениям в порядке убывания.

Публичные атрибуты

index_type_

DataType tensorflow::ops::TopK::Attrs::index_type_ = DT_INT32

sorted_

bool tensorflow::ops::TopK::Attrs::sorted_ = true

Публичные функции

ТипИндекса

TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::IndexType(
  DataType x
)

По умолчанию DT_INT32.

Отсортировано

TF_MUST_USE_RESULT Attrs tensorflow::ops::TopK::Attrs::Sorted(
  bool x
)

Если true, то результирующие k элементы будут отсортированы по значениям в порядке убывания.

По умолчанию true

© 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/cc/struct/tensorflow/ops/top-k/attrs

Spec-Zone.ru

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