텐서플로우:: ops:: SparseSlice
#include <sparse_ops.h> SparseTensor start 와 size 기준으로 분할합니다.
요약
예를 들어 입력이 다음과 같을 경우
input_tensor = shape = [2, 7] [ a d e ] [b c ]
그래프로 나타낸 출력 텐서는 다음과 같습니다.
sparse_slice([0, 0], [2, 4]) = shape = [2, 4] [ a ] [b c ] sparse_slice([0, 4], [2, 3]) = shape = [2, 3] [ d e ] [ ]
논거:
- 범위: Scope 객체
- 인덱스: 2차원 텐서는 희소 텐서의 인덱스를 나타냅니다.
- 값: 1차원 텐서는 희소 텐서의 값을 나타냅니다.
- shape: 1차원. 텐서는 희소 텐서의 형태를 나타냅니다.
- 시작: 1차원 텐서는 슬라이스의 시작점을 나타냅니다.
- size: 1차원 텐서는 슬라이스의 크기를 나타냅니다. output indices: 1차원 텐서 목록은 출력 희소 텐서의 인덱스를 나타냅니다.
보고:
-
Outputoutput_indices -
Outputoutput_values: 1차원 텐서 목록은 출력 희소 텐서의 값을 나타냅니다. -
Outputoutput_shape: 1차원 텐서 목록으로 출력 희소 텐서의 형태를 나타냅니다.
생성자와 소멸자 | |
|---|---|
SparseSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input shape, :: tensorflow::Input start, :: tensorflow::Input size) |
공개 속성 | |
|---|---|
operation | |
output_indices | |
output_shape | |
output_values | |
공개 속성
작업
Operation operation
출력 인덱스
::tensorflow::Output output_indices
출력 형태
::tensorflow::Output output_shape
출력값
::tensorflow::Output output_values
공공 기능
SparseSlice
SparseSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input shape, ::tensorflow::Input start, ::tensorflow::Input size )