Spec-Zone.ru › TensorFlow C++ 2.3

tensorflow::ops::Sum

#include <math_ops.h>

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

Summary

Сводит input по измерениям, заданным в axis. Если keep_dims неверно, ранг тензора уменьшается на 1 для каждого элемента в axis. Если keep_dims верно, сводимые измерения сохраняются с длиной 1.

Аргументы:

  • scope: Объект Scope
  • input: Тензор для сведения.
  • axis: Измерения для сведения. Должны быть в диапазоне [-rank(input), rank(input)).

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

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

Возвращает:

  • Output: Сведённый тензор.

Псевдонимы:

  • ReduceSum
Конструкторы и деструкторы
Sum(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis)
Sum(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Sum::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::Sum::Attrs

Необязательные установщики атрибутов для Sum.

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

operation

Operation operation

output

::tensorflow::Output output

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

Sum

 Sum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis
)

Sum

 Sum(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis,
  const Sum::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
)

© 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/cc/class/tensorflow/ops/sum

Spec-Zone.ru

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