Tune in to the first Women in ML Symposium this Tuesday, October 19 at 9am PST Register now

tensorflow:: ops:: SparseFillEmptyRowsGrad

#include <sparse_ops.h>

The gradient of SparseFillEmptyRows .

Summary

Takes vectors reverse_index_map, shaped [N] , and grad_values, shaped [N_full] , where N_full >= N and copies data into either d_values or d_default_value . Here d_values is shaped [N] and d_default_value is a scalar.

d_values[j] = grad_values[reverse_index_map[j]] d_default_value = sum_{k : 0 .. N_full - 1} ( grad_values[k] * 1{k not in reverse_index_map})

Args:

  • scope: A Scope object
  • reverse_index_map: 1-D. The reverse index map from SparseFillEmptyRows .
  • grad_values: 1-D. The gradients from backprop.

Returns:

  • Output d_values: 1-D. The backprop into values.
  • Output d_default_value: 0-D. The backprop into default_value.

Constructors and Destructors

SparseFillEmptyRowsGrad (const :: tensorflow::Scope & scope, :: tensorflow::Input reverse_index_map, :: tensorflow::Input grad_values)

Public attributes

d_default_value
d_values
operation

Public attributes

d_default_value

::tensorflow::Output d_default_value

d_values

::tensorflow::Output d_values

operation

Operation operation

Public functions

SparseFillEmptyRowsGrad

 SparseFillEmptyRowsGrad(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input reverse_index_map,
  ::tensorflow::Input grad_values
)