@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class SparseMatMul extends Pointer
Tensor
s not
SparseTensor
s. This op is optimized for the case where at least one of "a" or
"b" is sparse, in the sense that they have a large proportion of zero values.
The breakeven for using this versus a dense matrix multiply on one platform was
30% zero values in the sparse matrix.
The gradient computation of this operation will only take advantage of sparsity
in the input gradient when that gradient comes from a Relu.
Arguments:
* scope: A Scope object
Returns:
* Output
: The product tensor.Modifier and Type | Class and Description |
---|---|
static class |
SparseMatMul.Attrs
Optional attribute setters for SparseMatMul
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseMatMul(Pointer p)
Pointer cast constructor.
|
SparseMatMul(Scope scope,
Input a,
Input b) |
SparseMatMul(Scope scope,
Input a,
Input b,
SparseMatMul.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static SparseMatMul.Attrs |
AIsSparse(boolean x) |
Input |
asInput() |
Output |
asOutput() |
static SparseMatMul.Attrs |
BIsSparse(boolean x) |
Node |
node() |
Operation |
operation() |
SparseMatMul |
operation(Operation setter) |
Output |
product() |
SparseMatMul |
product(Output setter) |
static SparseMatMul.Attrs |
TransposeA(boolean x) |
static SparseMatMul.Attrs |
TransposeB(boolean x) |
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 SparseMatMul(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static SparseMatMul.Attrs TransposeA(@Cast(value="bool") boolean x)
@ByVal public static SparseMatMul.Attrs TransposeB(@Cast(value="bool") boolean x)
@ByVal public static SparseMatMul.Attrs AIsSparse(@Cast(value="bool") boolean x)
@ByVal public static SparseMatMul.Attrs BIsSparse(@Cast(value="bool") boolean x)
public SparseMatMul operation(Operation setter)
public SparseMatMul product(Output setter)
Copyright © 2022. All rights reserved.