@Operator(group="train") 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 wrapping a new ResourceApplyAdagrad operation.
|
static ResourceApplyAdagrad.Options |
updateSlots(Boolean updateSlots) |
static ResourceApplyAdagrad.Options |
useLocking(Boolean useLocking) |
equals, hashCode, op, toString
public static <T> ResourceApplyAdagrad create(Scope scope, Operand<?> var, Operand<?> accum, Operand<T> lr, Operand<T> grad, ResourceApplyAdagrad.Options... options)
scope
- current 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 © 2022. All rights reserved.