@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class ResourceApplyMomentum extends Pointer
Attrs
):
* use_locking: 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.
* use_nesterov: If True
, the tensor passed to compute grad will be
var - lr * momentum * accum, so in the end, the var you get is actually
var - lr * momentum * accum.
Returns:
* the created Operation
Modifier and Type | Class and Description |
---|---|
static class |
ResourceApplyMomentum.Attrs
Optional attribute setters for ResourceApplyMomentum
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ResourceApplyMomentum(Pointer p)
Pointer cast constructor.
|
ResourceApplyMomentum(Scope scope,
Input var,
Input accum,
Input lr,
Input grad,
Input momentum) |
ResourceApplyMomentum(Scope scope,
Input var,
Input accum,
Input lr,
Input grad,
Input momentum,
ResourceApplyMomentum.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Operation |
asOperation() |
Operation |
operation() |
ResourceApplyMomentum |
operation(Operation setter) |
static ResourceApplyMomentum.Attrs |
UseLocking(boolean x) |
static ResourceApplyMomentum.Attrs |
UseNesterov(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 ResourceApplyMomentum(Pointer p)
Pointer(Pointer)
.public ResourceApplyMomentum(@Const @ByRef Scope scope, @ByVal Input var, @ByVal Input accum, @ByVal Input lr, @ByVal Input grad, @ByVal Input momentum)
@ByVal public static ResourceApplyMomentum.Attrs UseLocking(@Cast(value="bool") boolean x)
@ByVal public static ResourceApplyMomentum.Attrs UseNesterov(@Cast(value="bool") boolean x)
public ResourceApplyMomentum operation(Operation setter)
Copyright © 2022. All rights reserved.