@Operator public final class ResourceApplyAdagrad extends PrimitiveOp
accum += grad * grad var -= lr * grad * (1 / sqrt(accum))
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceApplyAdagrad.Options
Optional attributes for
ResourceApplyAdagrad |
operation| Modifier and Type | Method and Description |
|---|---|
static <T> ResourceApplyAdagrad |
create(Scope scope,
Operand<?> var,
Operand<?> accum,
Operand<T> lr,
Operand<T> grad,
ResourceApplyAdagrad.Options... options)
Factory method to create a class to wrap a new ResourceApplyAdagrad operation to the graph.
|
static ResourceApplyAdagrad.Options |
updateSlots(Boolean updateSlots) |
static ResourceApplyAdagrad.Options |
useLocking(Boolean useLocking) |
equals, hashCode, toStringpublic static <T> ResourceApplyAdagrad create(Scope scope, Operand<?> var, Operand<?> accum, Operand<T> lr, Operand<T> grad, ResourceApplyAdagrad.Options... options)
scope - current graph scopevar - Should be from a Variable().accum - Should be from a Variable().lr - Scaling factor. Must be a scalar.grad - The gradient.options - carries optional attributes valuespublic static ResourceApplyAdagrad.Options useLocking(Boolean useLocking)
useLocking - 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.public static ResourceApplyAdagrad.Options updateSlots(Boolean updateSlots)
updateSlots - Copyright © 2015–2019. All rights reserved.