mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
[Flax] token-classification model steps enumerate start from 1 (#14547)
* step start from 1 * Updated cur_step calcualtion
This commit is contained in:
parent
cea17acd8c
commit
2bd950ca47
@ -598,7 +598,7 @@ def main():
|
||||
state, train_metric, dropout_rngs = p_train_step(state, batch, dropout_rngs)
|
||||
train_metrics.append(train_metric)
|
||||
|
||||
cur_step = epoch * step_per_epoch + step
|
||||
cur_step = (epoch * step_per_epoch) + (step + 1)
|
||||
|
||||
if cur_step % training_args.logging_steps == 0 and cur_step > 0:
|
||||
# Save metrics
|
||||
|
Loading…
Reference in New Issue
Block a user