텐서플로우:: ops:: DiagPart
#include <array_ops.h>텐서의 대각선 부분을 반환합니다.
요약
이 연산은 input 의 diagonal 부분을 포함하는 텐서를 반환합니다. diagonal 부분은 다음과 같이 계산됩니다.
input 의 차원이 [D1,..., Dk, D1,..., Dk] 라고 가정하면, 출력은 차원이 [D1,..., Dk] 이고 랭크가 k 인 텐서입니다. 여기서:
diagonal[i1,..., ik] = input[i1, ..., ik, i1,..., ik] .
예를 들어:
# 'input' is [[1, 0, 0, 0]
[0, 2, 0, 0]
[0, 0, 3, 0]
[0, 0, 0, 4]]tf.diag_part(input) ==> [1, 2, 3, 4]
논거:
- 범위: Scope 객체
- 입력: k는 짝수이고 0이 아닌 k차 텐서.
보고:
-
Output: 추출된 대각선 요소.
생성자와 소멸자 | |
|---|---|
DiagPart (const :: tensorflow::Scope & scope, :: tensorflow::Input input) |
공개 속성 | |
|---|---|
diagonal | |
operation | |
공공 기능 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
공개 속성
대각선
::tensorflow::Output diagonal
작업
Operation operation
공공 기능
진단파트
DiagPart( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const