@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class ApplyAdadelta extends Pointer
Update '*var' according to the adadelta scheme.
accum = rho() * accum + (1 - rho()) * grad.square();
update = (update_accum + epsilon).sqrt() * (accum + epsilon()).rsqrt() * grad;
update_accum = rho() * update_accum + (1 - rho()) * update.square();
var -= update;
Arguments:
* scope: A Scope object
* var: Should be from a Variable().
* accum: Should be from a Variable().
* accum_update: Should be from a Variable().
* lr: Scaling factor. Must be a scalar.
* rho: Decay factor. Must be a scalar.
* epsilon: Constant factor. Must be a scalar.
* grad: The gradient.
Optional attributes (see Attrs
):
* use_locking: If True, updating of the var, accum and update_accum tensors will be protected by
a lock; otherwise the behavior is undefined, but may exhibit less contention.
Returns:
* Output
: Same as "var".
Modifier and Type | Class and Description |
---|---|
static class |
ApplyAdadelta.Attrs
Optional attribute setters for ApplyAdadelta
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ApplyAdadelta(Pointer p)
Pointer cast constructor.
|
ApplyAdadelta(Scope scope,
Input var,
Input accum,
Input accum_update,
Input lr,
Input rho,
Input epsilon,
Input grad) |
ApplyAdadelta(Scope scope,
Input var,
Input accum,
Input accum_update,
Input lr,
Input rho,
Input epsilon,
Input grad,
ApplyAdadelta.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
ApplyAdadelta |
operation(Operation setter) |
Output |
out() |
ApplyAdadelta |
out(Output setter) |
static ApplyAdadelta.Attrs |
UseLocking(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 ApplyAdadelta(Pointer p)
Pointer(Pointer)
.public ApplyAdadelta(@Const @ByRef Scope scope, @ByVal Input var, @ByVal Input accum, @ByVal Input accum_update, @ByVal Input lr, @ByVal Input rho, @ByVal Input epsilon, @ByVal Input grad)
public Node node()
@ByVal public static ApplyAdadelta.Attrs UseLocking(@Cast(value="bool") boolean x)
public ApplyAdadelta operation(Operation setter)
public ApplyAdadelta out(Output setter)
Copyright © 2022. All rights reserved.