T
- data type for valGrad()
output@Operator(group="sparse") public final class SparseSliceGrad<T> extends PrimitiveOp implements Operand<T>
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`.
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> SparseSliceGrad<T> |
create(Scope scope,
Operand<T> backpropValGrad,
Operand<Long> inputIndices,
Operand<Long> inputStart,
Operand<Long> outputIndices)
Factory method to create a class wrapping a new SparseSliceGrad operation.
|
Output<T> |
valGrad()
1-D.
|
equals, hashCode, op, toString
public static <T> SparseSliceGrad<T> create(Scope scope, Operand<T> backpropValGrad, Operand<Long> inputIndices, Operand<Long> inputStart, Operand<Long> outputIndices)
scope
- current scopebackpropValGrad
- 1-D. The gradient with respect to
the non-empty values of the sliced `SparseTensor`.inputIndices
- 2-D. The `indices` of the input `SparseTensor`.inputStart
- 1-D. tensor represents the start of the slice.outputIndices
- 2-D. The `indices` of the sliced `SparseTensor`.public Output<T> valGrad()
public Output<T> asOutput()
Operand
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.
asOutput
in interface Operand<T>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.