Spec-Zone.ru › TensorFlow C++

tensorflow::ops::TopK::Attrs

#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
Если значение истинно, элементы k в результате будут отсортированы по значениям в порядке убывания.

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

index_type_

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

sorted_

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

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

IndexType

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

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

Sorted

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

Если значение истинно, элементы 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