StridedSliceGrad

public final class StridedSliceGrad

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`.

Nested Classes

class StridedSliceGrad.Options Optional attributes for StridedSliceGrad  

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<U>
asOutput()
Returns the symbolic handle of the tensor.
static StridedSliceGrad.Options
beginMask(Long beginMask)
static <U extends TType, T extends TNumber> StridedSliceGrad<U>
create(Scope scope, Operand<T> shape, Operand<T> begin, Operand<T> end, Operand<T> strides, Operand<U> dy, Options... options)
Factory method to create a class wrapping a new StridedSliceGrad operation.
static StridedSliceGrad.Options
ellipsisMask(Long ellipsisMask)
static StridedSliceGrad.Options
endMask(Long endMask)
static StridedSliceGrad.Options
newAxisMask(Long newAxisMask)
Output<U>
output()
static StridedSliceGrad.Options
shrinkAxisMask(Long shrinkAxisMask)

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.
org.tensorflow.Operand
abstract Output<U extends TType>
asOutput()
Returns the symbolic handle of the tensor.
abstract U extends TType
asTensor()
Returns the tensor at this operand.
abstract Shape
shape()
Returns the (possibly partially known) shape of the tensor referred to by the Output of this operand.
abstract Class<U extends TType>
type()
Returns the tensor type of this operand
org.tensorflow.ndarray.Shaped
abstract int
rank()
abstract Shape
shape()
abstract long
size()
Computes and returns the total size of this container, in number of values.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "StridedSliceGrad"

Public Methods

public Output<U> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

public static StridedSliceGrad.Options beginMask (Long beginMask)

public static StridedSliceGrad<U> create (Scope scope, Operand<T> shape, Operand<T> begin, Operand<T> end, Operand<T> strides, Operand<U> dy, Options... options)

Factory method to create a class wrapping a new StridedSliceGrad operation.

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of StridedSliceGrad

public static StridedSliceGrad.Options ellipsisMask (Long ellipsisMask)

public static StridedSliceGrad.Options endMask (Long endMask)

public static StridedSliceGrad.Options newAxisMask (Long newAxisMask)

public Output<U> output ()

public static StridedSliceGrad.Options shrinkAxisMask (Long shrinkAxisMask)