#include <array_ops.h>
Returns the gradient of StridedSlice
.
Since StridedSlice
cuts out pieces of its input
which is size shape
, its gradient will have the same shape (which is passed here as shape
). The gradient will be zero in any element that the slice does not select.
Arguments are the same as StridedSliceGrad with the exception that dy
is the input gradient to be propagated and shape
is the shape of StridedSlice
's input
.
Arguments:
Returns:
Output
: The output tensor. Constructors and Destructors | |
---|---|
StridedSliceGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy) | |
StridedSliceGrad(const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy, const StridedSliceGrad::Attrs & attrs) |
Public attributes | |
---|---|
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
BeginMask(int64 x) | |
EllipsisMask(int64 x) | |
EndMask(int64 x) | |
NewAxisMask(int64 x) | |
ShrinkAxisMask(int64 x) |
Structs | |
---|---|
tensorflow::ops::StridedSliceGrad::Attrs | Optional attribute setters for StridedSliceGrad. |
::tensorflow::Output output
StridedSliceGrad( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy )
StridedSliceGrad( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy, const StridedSliceGrad::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs BeginMask( int64 x )
Attrs EllipsisMask( int64 x )
Attrs EndMask( int64 x )
Attrs NewAxisMask( int64 x )
Attrs ShrinkAxisMask( int64 x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/strided-slice-grad.html