@Operator public final class ResourceApplyGradientDescent extends PrimitiveOp
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceApplyGradientDescent.Options
Optional attributes for
ResourceApplyGradientDescent |
operation| Modifier and Type | Method and 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(Boolean useLocking) |
equals, 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(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.