@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class SparseAddGrad extends Pointer
SparseTensor
objects. This op takes in the upstream gradient w.r.t.
non-empty values of the sum, and outputs the gradients w.r.t. the non-empty
values of A and B.
Arguments:
* scope: A Scope object
* backprop_val_grad: 1-D with shape [nnz(sum)]
. The gradient with respect to
the non-empty values of the sum.
* a_indices: 2-D. The indices
of the SparseTensor
A, size [nnz(A), ndims]
.
* b_indices: 2-D. The indices
of the SparseTensor
B, size [nnz(B), ndims]
.
* sum_indices: 2-D. The indices
of the sum SparseTensor
, size
[nnz(sum), ndims]
.
Returns:
* Output
a_val_grad: 1-D with shape [nnz(A)]
. The gradient with respect to the
non-empty values of A.
* Output
b_val_grad: 1-D with shape [nnz(B)]
. The gradient with respect to the
non-empty values of B.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseAddGrad(Pointer p)
Pointer cast constructor.
|
SparseAddGrad(Scope scope,
Input backprop_val_grad,
Input a_indices,
Input b_indices,
Input sum_indices) |
Modifier and Type | Method and Description |
---|---|
Output |
a_val_grad() |
SparseAddGrad |
a_val_grad(Output setter) |
Output |
b_val_grad() |
SparseAddGrad |
b_val_grad(Output setter) |
Operation |
operation() |
SparseAddGrad |
operation(Operation setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SparseAddGrad(Pointer p)
Pointer(Pointer)
.public SparseAddGrad operation(Operation setter)
public SparseAddGrad a_val_grad(Output setter)
public SparseAddGrad b_val_grad(Output setter)
Copyright © 2022. All rights reserved.