Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: Cumprod

#include <math_ops.h>

x tensörünün axis boyunca kümülatif ürününü hesaplayın.

Özet

Varsayılan olarak, bu işlem kapsayıcı bir cumprod gerçekleştirir; bu, girdinin ilk öğesinin çıktının ilk öğesiyle aynı olduğu anlamına gelir:

tf.cumprod([a, b, c])  # => [a, a * b, a * b * c]

exclusive kwarg'ı True ayarlayarak, bunun yerine özel bir cumprod gerçekleştirilir:

tf.cumprod([a, b, c], exclusive=True)  # => [1, a, a * b]

reverse kwarg'ı True ayarlayarak, cumprod ters yönde gerçekleştirilir:

tf.cumprod([a, b, c], reverse=True)  # => [a * b * c, b * c, c]

Bu, ayrı tf.reverse ops kullanmaktan daha etkilidir.

reverse ve exclusive kwarglar da birleştirilebilir:

tf.cumprod([a, b, c], exclusive=True, reverse=True)  # => [b * c, c, 1]

Argümanlar:

  • kapsam: Bir Scope nesnesi
  • x: Bir Tensor . Aşağıdaki türlerinden birini olmalı float32 , float64 , int64 , int32 , uint8 , uint16 , int16 , int8 , complex64 , complex128 , qint8 , quint8 , qint32 , half .
  • eksen: int32 türünde bir Tensor (varsayılan: 0). [-rank(x), rank(x)) aralığında olmalıdır.

İsteğe bağlı özellikler (bkz. Attrs ):

  • özel: True , özel cumprod gerçekleştirin.
  • ters: Bir bool (varsayılan: Yanlış).

İadeler:

Yapıcılar ve Yıkıcılar

Cumprod (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input axis)
Cumprod (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input axis, const Cumprod::Attrs & attrs)

Genel özellikler

operation
out

Kamusal işlevler

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

Genel statik işlevler

Exclusive (bool x)
Reverse (bool x)

Yapılar

tensorflow :: ops :: Cumprod :: Attrs

Cumprod için isteğe bağlı öznitelik belirleyiciler.

Genel özellikler

operasyon

Operation operation

dışarı

::tensorflow::Output out

Kamusal işlevler

Cumprod

 Cumprod(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input axis
)

Cumprod

 Cumprod(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input axis,
  const Cumprod::Attrs & attrs
)

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const 

Genel statik işlevler

Ayrıcalıklı

Attrs Exclusive(
  bool x
)

Tersine çevirmek

Attrs Reverse(
  bool x
)