T - data type for valGrad() output@Operator 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 to wrap a new SparseSliceGrad operation to the graph.
|
Output<T> |
valGrad()
1-D.
|
equals, hashCode, toStringpublic static <T> SparseSliceGrad<T> create(Scope scope, Operand<T> backpropValGrad, Operand<Long> inputIndices, Operand<Long> inputStart, Operand<Long> outputIndices)
scope - current graph 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()
OperandInputs 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 © 2015–2019. All rights reserved.