Op@Operator(group="train") public final class ResourceApplyGradientDescent extends PrimitiveOp
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ResourceApplyGradientDescent.Options |
Optional attributes for
ResourceApplyGradientDescent |
operation| Modifier and Type | Method | Description |
|---|---|---|
static <T> ResourceApplyGradientDescent |
create(Scope scope,
Operand<?> var,
Operand<T> alpha,
Operand<T> delta,
ResourceApplyGradientDescent.Options... options) |
Factory method to create a class to wrap a new ResourceApplyGradientDescent operation to the graph.
|
static ResourceApplyGradientDescent.Options |
useLocking(java.lang.Boolean useLocking) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <T> ResourceApplyGradientDescent create(Scope scope, Operand<?> var, Operand<T> alpha, Operand<T> delta, ResourceApplyGradientDescent.Options... options)
scope - current graph scopevar - Should be from a Variable().alpha - Scaling factor. Must be a scalar.delta - The change.options - carries optional attributes valuespublic static ResourceApplyGradientDescent.Options useLocking(java.lang.Boolean useLocking)
useLocking - If `True`, the subtraction will be protected by a lock;
otherwise the behavior is undefined, but may exhibit less contention.