tensorflow::ops::StridedSliceGrad
tensorflow::ops::StridedSliceGrad
#include <array_ops.h>
Returns the gradient of StridedSlice
.
Summary
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:
- scope: A Scope object
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. |
Public attributes
output
::tensorflow::Output output
Public functions
StridedSliceGrad
StridedSliceGrad( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy )
StridedSliceGrad
StridedSliceGrad( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input begin, ::tensorflow::Input end, ::tensorflow::Input strides, ::tensorflow::Input dy, const StridedSliceGrad::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
BeginMask
Attrs BeginMask( int64 x )
EllipsisMask
Attrs EllipsisMask( int64 x )
EndMask
Attrs EndMask( int64 x )
NewAxisMask
Attrs NewAxisMask( int64 x )
ShrinkAxisMask
Attrs ShrinkAxisMask( int64 x )
© 2017 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