ResourceAccumulatorSetGlobalStep

public final class ResourceAccumulatorSetGlobalStep

Updates the accumulator with a new value for global_step.

Logs warning if the accumulator's value is already higher than new_global_step.

Public Methods

static ResourceAccumulatorSetGlobalStep
create ( Scope scope, Operand <?> handle, Operand <Long> newGlobalStep)
Factory method to create a class wrapping a new ResourceAccumulatorSetGlobalStep operation.

Inherited Methods

Public Methods

public static ResourceAccumulatorSetGlobalStep create ( Scope scope, Operand <?> handle, Operand <Long> newGlobalStep)

Factory method to create a class wrapping a new ResourceAccumulatorSetGlobalStep operation.

Parameters
scope current scope
handle The handle to an accumulator.
newGlobalStep The new global_step value to set.
Returns
  • a new instance of ResourceAccumulatorSetGlobalStep