Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SparseReduceMax

#include <sparse_ops.h>

Вычисляет максимальное значение элементов по измерениям SparseTensor.

Краткое описание

Эта операция принимает SparseTensor и является разреженным аналогом tf.reduce_max(). В частности, эта операция также возвращает плотный Tensor, а не разреженный.

Выполняет редукцию sp_input по измерениям, заданным в reduction_axes. Если keep_dims не равно true, ранг тензора уменьшается на 1 для каждой записи в reduction_axes. Если keep_dims равно true, редуцированные измерения сохраняются с длиной 1.

Если reduction_axes не содержит записей, выполняется редукция по всем измерениям и возвращается тензор с одним элементом. Кроме того, оси могут быть отрицательными; в этом случае они интерпретируются согласно правилам индексации Python.

Аргументы:

  • scope: объект Scope
  • input_indices: 2-D. Матрица N x R с индексами непустых значений в SparseTensor, возможно, не в каноническом порядке.
  • input_values: 1-D. Непустые значения N, соответствующие input_indices.
  • input_shape: 1-D. Форма входного SparseTensor.
  • reduction_axes: 1-D. Вектор длины K, содержащий оси редукции.

Необязательные атрибуты (см. Attrs):

  • keep_dims: если true, сохраняет редуцированные измерения с длиной 1.

Возвращает:

  • Output: R-K-D. Редуцированный Tensor.
Конструкторы и деструкторы
SparseReduceMax(const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes)
SparseReduceMax(const ::tensorflow::Scope & scope, ::tensorflow::Input input_indices, ::tensorflow::Input input_values, ::tensorflow::Input input_shape, ::tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs)
Открытые атрибуты
operation
Operation
output
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
KeepDims(bool x)
Attrs
Структуры
tensorflow::ops::SparseReduceMax::Attrs

Методы задания необязательных атрибутов для SparseReduceMax.

Открытые атрибуты

operation

Operation operation

output

::tensorflow::Output output

Открытые функции

SparseReduceMax

 SparseReduceMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes
)

SparseReduceMax

 SparseReduceMax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes,
  const SparseReduceMax::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Открытые статические функции

KeepDims

Attrs KeepDims(
  bool x
)

© 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/class/tensorflow/ops/sparse-reduce-max

Spec-Zone.ru

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