public static class ResourceSparseApplyKerasMomentum.Attrs extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Attrs()
Default native constructor.
|
Attrs(long size)
Native array allocator.
|
Attrs(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ResourceSparseApplyKerasMomentum.Attrs |
getPointer(long i) |
ResourceSparseApplyKerasMomentum.Attrs |
position(long position) |
boolean |
use_locking_() |
ResourceSparseApplyKerasMomentum.Attrs |
use_locking_(boolean setter) |
boolean |
use_nesterov_() |
ResourceSparseApplyKerasMomentum.Attrs |
use_nesterov_(boolean setter) |
ResourceSparseApplyKerasMomentum.Attrs |
UseLocking(boolean x)
If
True , updating of the var and accum tensors will be protected
by a lock; otherwise the behavior is undefined, but may exhibit less
contention. |
ResourceSparseApplyKerasMomentum.Attrs |
UseNesterov(boolean x)
If
True , the tensor passed to compute grad will be
var + momentum * accum, so in the end, the var you get is actually
var + momentum * accum. |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Attrs()
public Attrs(long size)
Pointer.position(long)
.public Attrs(Pointer p)
Pointer(Pointer)
.public ResourceSparseApplyKerasMomentum.Attrs position(long position)
public ResourceSparseApplyKerasMomentum.Attrs getPointer(long i)
getPointer
in class Pointer
@ByVal public ResourceSparseApplyKerasMomentum.Attrs UseLocking(@Cast(value="bool") boolean x)
True
, updating of the var and accum tensors will be protected
by a lock; otherwise the behavior is undefined, but may exhibit less
contention.
Defaults to false@ByVal public ResourceSparseApplyKerasMomentum.Attrs UseNesterov(@Cast(value="bool") boolean x)
True
, the tensor passed to compute grad will be
var + momentum * accum, so in the end, the var you get is actually
var + momentum * accum.
Defaults to falsepublic ResourceSparseApplyKerasMomentum.Attrs use_locking_(boolean setter)
public ResourceSparseApplyKerasMomentum.Attrs use_nesterov_(boolean setter)
Copyright © 2022. All rights reserved.