텐서플로우:: ops:: SparseReorder

#include <sparse_ops.h>

SparseTensor를 표준적인 행 우선 순서로 재정렬합니다.

요약

관례적으로 모든 희소 연산은 차원 수가 증가하는 순서대로 정규 순서를 유지합니다. 순서가 깨질 수 있는 유일한 경우는 인덱스 및 값 벡터를 수동으로 조작하여 항목을 추가하는 경우입니다.

순서를 바꿔도 SparseTensor의 형태는 변하지 않습니다.

텐서의 랭크가 R 이고 비어 있지 않은 값이 N 개인 경우 input_indices [N, R] 형태를 가지며 input_values는 N 의 길이를 갖고 input_shape는 R 길이를 갖습니다.

논거:

  • 범위: Scope 객체
  • input_indices: SparseTensor에서 비어 있지 않은 값의 인덱스를 포함하는 2차원 N x R 행렬이며, 정규 순서가 아닐 수도 있습니다.
  • input_values: 1차원. input_indices 에 해당하는 비어 있지 않은 값 N .
  • input_shape: 1차원. 입력 SparseTensor의 형태입니다.

보고:

  • Output output_indices: 입력_indices와 동일한 인덱스를 갖지만 정규 행 우선 순서로 정렬된 2차원 N x R 행렬입니다.
  • Output output_values: 1차원. output_indices 에 해당하는 비어 있지 않은 값 N .

생성자와 소멸자

SparseReorder (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape)

공개 속성

operation
output_indices
output_values

공개 속성

작업

Operation operation

출력 인덱스

::tensorflow::Output output_indices

출력값

::tensorflow::Output output_values

공공 기능

희소 재정렬

 SparseReorder(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape
)