tensorflow :: ops :: SparseFillEmptyRows
#include <sparse_ops.h>
입력 2D SparseTensor
의 빈 행을 기본값으로 채 웁니다.
요약
입력 SparseTensor
는 입력 튜플 ( indices
, values
, dense_shape
)을 통해 표현됩니다. 출력 SparseTensor
는 동일한 dense_shape
갖지만 index는 output_indices
및 value는 output_values
입니다.
이 작업은 값이없는 모든 행에 대해 단일 항목을 삽입합니다. 인덱스는 [row, 0, ..., 0]
되고 삽입 된 값은 default_value
입니다.
예를 들어 sp_input
모양이 [5, 6]
이고 비어 있지 않은 값이 sp_input
이라고 가정합니다.
행 1과 4는 비어 있으므로 출력은
[0, 1]: a [0, 3]: b [1, 0]: default_value [2, 0]: c [3, 1]: d [4, 0]: default_value값을 가진
[5, 6]
모양이됩니다. 출력 SparseTensor
는 행 우선 순서이며 입력과 동일한 모양을 갖습니다.
이 연산은 또한 [dense_shape[0]]
과 같은 [dense_shape[0]]
모양의 표시기 벡터를 반환합니다.
그리고 역 전파 동안 사용되는 역방향 인덱스 맵 벡터 모양의 [indices.shape[0]]
reverse_index_map[j] = out_j s.t. indices[j, :] == output_indices[out_j, :]
인수 :
- 범위 : 범위 개체
- 인덱스 : 2-D. 희소 텐서의 인덱스.
- 값 : 1-D. 희소 텐서의 값.
- density_shape : 1-D. 희소 텐서의 모양.
- default_value : 0-D. 입력 희소 텐서에서 누락 된 행에 대해
[row, 0, ..., 0]
위치에 삽입 할 기본값입니다. 출력 인덱스 : 2-D. 채워진 희소 텐서의 인덱스.
보고:
-
Output
output_indices -
Output
output_values : 1-D. 채워진 희소 텐서의 값. -
Output
empty_row_indicator : 1-D. 입력 희소 텐서에서 조밀 한 행이 누락되었는지 여부. - reverse_index_map
Output
: 1-D. 입력 인덱스에서 출력 인덱스로의 맵.
생성자와 소멸자 | |
---|---|
SparseFillEmptyRows (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input default_value) |
공용 속성 | |
---|---|
empty_row_indicator | |
operation | |
output_indices | |
output_values | |
reverse_index_map |
공용 속성
empty_row_indicator
::tensorflow::Output empty_row_indicator
조작
Operation operation
출력 _ 인덱스
::tensorflow::Output output_indices
출력 _ 값
::tensorflow::Output output_values
reverse_index_map
::tensorflow::Output reverse_index_map
공공 기능
SparseFillEmptyRows
SparseFillEmptyRows( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input dense_shape, ::tensorflow::Input default_value )