텐서플로우:: 작전:: 스파스슬라이스

#include <sparse_ops.h>

startsize 기준으로 SparseTensor 슬라이스합니다.

요약

예를 들어 입력이

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  ]
[      ]

인수:

  • 범위: 범위 개체
  • 인덱스: 2차원 텐서는 희소 텐서의 인덱스를 나타냅니다.
  • 값: 1차원 텐서는 희소 텐서의 값을 나타냅니다.
  • 모양: 1-D. 텐서는 희소 텐서의 모양을 나타냅니다.
  • 시작: 1-D. 텐서는 슬라이스의 시작을 나타냅니다.
  • 크기: 1-D. 텐서는 슬라이스의 크기를 나타냅니다. 출력 인덱스: 1차원 텐서 목록은 출력 희소 텐서의 인덱스를 나타냅니다.

보고:

  • Output 출력_인덱스
  • Output 출력_값: 1차원 텐서 목록은 출력 희소 텐서의 값을 나타냅니다.
  • Output 출력_모양: 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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input shape,
  ::tensorflow::Input start,
  ::tensorflow::Input size
)