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