Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::SparseSliceGrad
#include <sparse_ops.h>
The gradient operator for the SparseSlice op.
Summary
This op takes in the upstream gradient w.r.t. non-empty values of the sliced SparseTensor
, and outputs the gradients w.r.t. the non-empty values of input SparseTensor
.
Arguments:
- scope: A Scope object
- backprop_val_grad: 1-D. The gradient with respect to the non-empty values of the sliced
SparseTensor
.
- input_indices: 2-D. The
indices
of the input SparseTensor
.
- input_start: 1-D. tensor represents the start of the slice.
- output_indices: 2-D. The
indices
of the sliced SparseTensor
.
Returns:
Output
: 1-D. The gradient with respect to the non-empty values of input SparseTensor
.
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 UTC."],[],[],null,["# tensorflow::ops::SparseSliceGrad Class Reference\n\ntensorflow::ops::SparseSliceGrad\n================================\n\n`#include \u003csparse_ops.h\u003e`\n\nThe gradient operator for the [SparseSlice](/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice) op.\n\nSummary\n-------\n\nThis op takes in the upstream gradient w.r.t. non-empty values of the sliced `SparseTensor`, and outputs the gradients w.r.t. the non-empty values of input `SparseTensor`.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- backprop_val_grad: 1-D. The gradient with respect to the non-empty values of the sliced `SparseTensor`.\n- input_indices: 2-D. The `indices` of the input `SparseTensor`.\n- input_start: 1-D. tensor represents the start of the slice.\n- output_indices: 2-D. The `indices` of the sliced `SparseTensor`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 1-D. The gradient with respect to the non-empty values of input `SparseTensor`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SparseSliceGrad](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a61a49266ea8096f01fa4aa844f1c75c3)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` backprop_val_grad, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_indices, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input_start, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` output_indices)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1adfc057ace318022b3bee9cd07bd6f835) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [val_grad](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a1674c7bc87e5fec3efd3085e2daa7ca3) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1ababeb6aceed2c9b368b9b79983a1fe7f)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1a98c6cf59f7806750cf8dc6e8fa5c6f7f)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_sparse_slice_grad_1aff4fc14838514fb7e2de68eea849d589)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### val_grad\n\n```scdoc\n::tensorflow::Output val_grad\n``` \n\nPublic functions\n----------------\n\n### SparseSliceGrad\n\n```gdscript\n SparseSliceGrad(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input backprop_val_grad,\n ::tensorflow::Input input_indices,\n ::tensorflow::Input input_start,\n ::tensorflow::Input output_indices\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]