텐서플로우::ops::SparseAdd

#include <sparse_ops.h>

SparseTensor 객체 두 개를 더하여 또 다른 SparseTensor 생성합니다.

요약

입력 SparseTensor 객체의 인덱스는 표준 사전식 순서로 정렬되어 있다고 가정합니다. 만약 그렇지 않다면, 이 단계 전에 SparseReorder 실행하여 인덱스 순서를 복원하십시오.

기본적으로 두 값의 합이 특정 인덱스에서 0이 되더라도 출력 SparseTensor 해당 위치를 인덱스에 유지하고 해당 값 슬롯에 0을 저장합니다. 이를 재정의하려면 호출자는 thresh 지정할 수 있습니다. `thresh`는 합이 thresh 보다 작으면 해당 값과 인덱스를 포함하지 않도록 합니다. 특히 thresh == 0 (기본값)은 모든 값이 유지되고 실제 임계값 처리는 양수 값에 대해서만 수행됨을 의미합니다.

다음 도형에서 nnz 는 thresh 고려한 후의 개수입니다.

논거:

  • 범위: Scope 객체
  • a_indices: 2차원. 첫 번째 SparseTensor 의 indices , 크기 [nnz, ndims] 행렬.
  • a_values: 1차원. 첫 번째 SparseTensor 의 values , 크기 [nnz] 벡터.
  • a_shape: 1차원. 첫 번째 SparseTensor 의 shape , 크기 [ndims] 벡터.
  • b_indices: 2차원. 두 번째 SparseTensor 의 indices , 크기 [nnz, ndims] 행렬.
  • b_values: 1차원. 두 번째 SparseTensor 의 values , 크기 [nnz] 벡터.
  • b_shape: 1차원. 두 번째 SparseTensor 의 shape , 크기 [ndims] 벡터.
  • 임계값: 0-D. 출력 값/인덱스 쌍이 공간을 차지하는지 여부를 결정하는 크기 임계값입니다.

보고:

생성자와 소멸자

SparseAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b_indices, :: tensorflow::Input b_values, :: tensorflow::Input b_shape, :: tensorflow::Input thresh)

공개 속성

operation
sum_indices
sum_shape
sum_values

공개 속성

작업

Operation operation

인덱스 합계

::tensorflow::Output sum_indices

합 모양

::tensorflow::Output sum_shape

합계값

::tensorflow::Output sum_values

공공 기능

희소 추가

 SparseAdd(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b_indices,
  ::tensorflow::Input b_values,
  ::tensorflow::Input b_shape,
  ::tensorflow::Input thresh
)