텐서플로우:: 작전:: 컴프로드
#include <math_ops.h> axis 따라 텐서 x 의 누적 곱을 계산합니다.
요약
기본적으로 이 작업은 포괄적인 cumprod를 수행합니다. 즉, 입력의 첫 번째 요소가 출력의 첫 번째 요소와 동일함을 의미합니다.
tf.cumprod([a, b, c]) # => [a, a * b, a * b * c] exclusive kwarg를 True 로 설정하면 독점 cumprod가 대신 수행됩니다.
tf.cumprod([a, b, c], exclusive=True) # => [1, a, a * b]
reverse kwarg를 True 로 설정하면 cumprod가 반대 방향으로 수행됩니다.
tf.cumprod([a, b, c], reverse=True) # => [a * b * c, b * c, c] 이는 별도의 tf.reverse 작업을 사용하는 것보다 더 효율적입니다.
reverse 및 exclusive kwargs를 결합할 수도 있습니다.
tf.cumprod([a, b, c], exclusive=True, reverse=True) # => [b * c, c, 1]
인수:
- 범위: 범위 개체
- x:
Tensor. 다음 유형 중 하나여야 합니다:float32,float64,int64,int32,uint8,uint16,int16,int8,complex64,complex128,qint8,quint8,qint32,half. - axis:
int32유형의Tensor(기본값: 0).[-rank(x), rank(x))범위 내에 있어야 합니다.
선택적 속성( Attrs 참조):
- 배타적:
True이면 배타적 cumprod를 수행합니다. - reverse:
bool(기본값: False)
보고:
-
Output: 출력 텐서.
생성자와 소멸자 | |
|---|---|
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) |
공개 속성 | |
|---|---|
operation | |
out | |
공공 기능 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
공개 정적 함수 | |
|---|---|
Exclusive (bool x) | |
Reverse (bool x) | |
구조체 | |
|---|---|
| 텐서플로우:: ops:: Cumprod:: 속성 | Cumprod 의 선택적 속성 설정자. |
공개 속성
작업
Operation operation
밖으로
::tensorflow::Output out
공공 기능
컴프로드
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 )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
독점적인
Attrs Exclusive( bool x )
뒤집다
Attrs Reverse( bool x )