async extractIterations(weightValues) {
        this.iterations_ = (await weightValues[0].tensor.data())[0];
        return weightValues.slice(1);
    }
Extract the first element of the weight values and set it
as the iterations counter variable of this instance of optimizer.

@param weightValues
@returns Weight values with the first element consumed and excluded.