@Operator public final class ResourceApplyProximalGradientDescent extends PrimitiveOp
prox_v = var - alpha delta var = sign(prox_v)/(1+alphal2) max{|prox_v|-alphal1,0}
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceApplyProximalGradientDescent.Options
Optional attributes for
ResourceApplyProximalGradientDescent |
operation| Modifier and Type | Method and Description |
|---|---|
static <T> ResourceApplyProximalGradientDescent |
create(Scope scope,
Operand<?> var,
Operand<T> alpha,
Operand<T> l1,
Operand<T> l2,
Operand<T> delta,
ResourceApplyProximalGradientDescent.Options... options)
Factory method to create a class to wrap a new ResourceApplyProximalGradientDescent operation to the graph.
|
static ResourceApplyProximalGradientDescent.Options |
useLocking(Boolean useLocking) |
equals, hashCode, toStringpublic static <T> ResourceApplyProximalGradientDescent create(Scope scope, Operand<?> var, Operand<T> alpha, Operand<T> l1, Operand<T> l2, Operand<T> delta, ResourceApplyProximalGradientDescent.Options... options)
scope - current graph scopevar - Should be from a Variable().alpha - Scaling factor. Must be a scalar.l1 - L1 regularization. Must be a scalar.l2 - L2 regularization. Must be a scalar.delta - The change.options - carries optional attributes valuespublic static ResourceApplyProximalGradientDescent.Options useLocking(Boolean useLocking)
useLocking - If True, the subtraction will be protected by a lock;
otherwise the behavior is undefined, but may exhibit less contention.Copyright © 2015–2019. All rights reserved.