Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: SparseReorder

#include <sparse_ops.h>

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

요약

규칙에 따라 모든 희소 연산은 차원 번호가 증가함에 따라 표준 순서를 유지합니다. 유일한 시간 순서를 위반할 수있는 것은 항목을 추가하기 위해 인덱스 및 값 벡터를 수동으로 조작하는 동안입니다.

재정렬은 SparseTensor의 모양에 영향을주지 않습니다.

텐서에 R 등급이 있고 비어 있지 않은 N 값이있는 경우 input_indices 형태는 [N, R] 이고 input_values의 길이는 N 이며 input_shape의 길이는 R 입니다.

인수 :

  • 범위 : 범위 개체
  • 입력 _ 인덱스 : 2-D. SparseTensor에서 비어 있지 않은 값의 인덱스가 포함 된 N x R 행렬 (정규 순서가 아닐 수 있음).
  • 입력 _ 값 : 1-D. input_indices 해당하는 N 개의 비어 있지 않은 값.
  • input_shape : 1-D. 입력 SparseTensor의 모양입니다.

보고:

  • Output output_indices : 2-D. input_indices와 동일한 인덱스를 갖지만 표준 행 우선 순서를 갖는 N x R 행렬.
  • Output output_values ​​: 1-D. 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

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