텐서플로우::ops::SerializeManySparse

#include <sparse_ops.h>

N 미니배치 SparseTensor [N, 3] Tensor 객체로 직렬화합니다.

요약

SparseTensor 랭크 R 1보다 커야 하며, 첫 번째 차원은 미니배치 차원으로 간주됩니다. SparseTensor 의 요소는 이 첫 번째 차원의 오름차순으로 정렬되어야 합니다. serialized_sparse 의 각 행에 들어가는 직렬화된 SparseTensor 객체는 랭크 R-1 을 갖습니다.

미니배치 크기 N 은 sparse_shape[0] 에서 추출됩니다.

논거:

  • 범위: Scope 객체
  • sparse_indices: 2차원. 미니배치 SparseTensor 의 indices .
  • sparse_values: 1차원. 미니배치 SparseTensor 의 values .
  • sparse_shape: 1차원. 미니배치 SparseTensor 의 shape .

선택적 속성( Attrs 참조):

  • out_type: 직렬화에 사용할 dtype 입니다. 지원되는 유형은 string (기본값)과 variant .

보고:

  • Output : 직렬화된 희소 텐서.

생성자와 소멸자

SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)

공개 속성

operation
serialized_sparse

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

OutType (DataType x)

구조

텐서플로우:: ops:: SerializeManySparse:: Attrs

SerializeManySparse 에 대한 선택적 속성 설정기입니다.

공개 속성

작업

Operation operation

직렬화된 희소

::tensorflow::Output serialized_sparse

공공 기능

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

출력 유형

Attrs OutType(
  DataType x
)