tensoreflusso:: ops:: Somma

#include <math_ops.h>

Calcola la somma degli elementi attraverso le dimensioni di un tensore.

Riepilogo

Riduce input lungo le dimensioni indicate axis . A meno che keep_dims non sia vero, il rango del tensore viene ridotto di 1 per ogni voce in axis . Se keep_dims è true, le dimensioni ridotte vengono mantenute con lunghezza 1.

Argomenti:

  • scope: un oggetto Scope
  • input: il tensore da ridurre.
  • asse: le dimensioni da ridurre. Deve essere compreso nell'intervallo [-rank(input), rank(input)) .

Attributi facoltativi (vedi Attrs ):

  • keep_dims: se vero, mantiene le dimensioni ridotte con lunghezza 1.

Ritorna:

Alias:

  • Riduci somma

Costruttori e distruttori

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)

Attributi pubblici

operation
output

Funzioni pubbliche

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Funzioni pubbliche statiche

KeepDims (bool x)

Strutture

tensorflow:: ops:: Somma:: Attrs

Setter di attributi facoltativi per Sum .

Attributi pubblici

operazione

Operation operation

produzione

::tensorflow::Output output

Funzioni pubbliche

Somma

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

Somma

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

nodo

::tensorflow::Node * node() const 

operatore::tensorflow::Input

 operator::tensorflow::Input() const 

operatore::tensorflow::Output

 operator::tensorflow::Output() const 

Funzioni pubbliche statiche

KeepDims

Attrs KeepDims(
  bool x
)