Translations:Tutoriel Apprentissage machine/61/en

From Alliance Doc
Jump to navigation Jump to search
  1. Get most recent checkpoint (this example is for PyTorch *.pth checkpoint files)

export CHECKPOINTS=~/scratch/checkpoints/ml-test LAST_CHECKPOINT=$(find . -maxdepth 1 -name "$CHECKPOINTS/*.pth" -print0 | xargs -r -0 ls -1 -t | head -1)