Closed peteschultz closed 5 years ago
I'm merging this as the capability was already more-or-less implemented but we needed a few tweaks and to turn off an error condition.
This update will help with booting an LCA layer from a checkpoint that used a different number of batches. LCA can take many display periods to settle "onto" the manifold and it's always good to start on the manifold rather than in some very arbitrary initial state
Garrett T. Kenyon, PhD Computer & Computational Science Division, CCS-3 office: 505-695-4587 P.O. Box 1663, MS-B256 cell: 505-412-0416 Los Alamos National Laboratory curriculum vitae https://goo.gl/hLMhDg Los Alamos, NM 87545 email: garkenyon@gmail.com https://petavision.github.io/
"Near the day of Purification, there will be cobwebs spun back and forth in the sky." -Hopi Prophesy
On Fri, Jun 28, 2019 at 6:23 PM peteschultz notifications@github.com wrote:
If the checkpoint's nbatch is larger than the param file's nbatch, the extra batch elements are ignored.
If the checkpoint's nbatch is smaller, batch elements are repeated cyclically.
In either case, warnings are issued. In previous versions, a mismatch in the nbatch values would result in a fatal error.
You can view, comment on, or merge this pull request online at:
https://github.com/PetaVision/OpenPV/pull/290 Commit Summary
- Initializing from checkpoint with different nbatch
File Changes
- M src/checkpointing/CheckpointEntryPvp.tpp https://github.com/PetaVision/OpenPV/pull/290/files#diff-0 (23)
- M src/components/ActivityComponent.cpp https://github.com/PetaVision/OpenPV/pull/290/files#diff-1 (9)
- M src/components/ActivityComponent.hpp https://github.com/PetaVision/OpenPV/pull/290/files#diff-2 (2)
- M src/utils/BufferUtilsPvp.tpp https://github.com/PetaVision/OpenPV/pull/290/files#diff-3 (14)
- M tests/InitializeFromCheckpointDirTest/input/BaseRun.params https://github.com/PetaVision/OpenPV/pull/290/files#diff-4 (154)
- M tests/InitializeFromCheckpointDirTest/input/InitializeFromCheckpointDirTest.params https://github.com/PetaVision/OpenPV/pull/290/files#diff-5 (156)
Patch Links:
- https://github.com/PetaVision/OpenPV/pull/290.patch
- https://github.com/PetaVision/OpenPV/pull/290.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PetaVision/OpenPV/pull/290?email_source=notifications&email_token=AAGMFQVWRBLO2WTPMD4G7LTP42TPXA5CNFSM4H4JGWUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4NKETQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGMFQV4IDXAZTGGTEIOVZLP42TPXANCNFSM4H4JGWUA .
If the checkpoint's nbatch is larger than the param file's nbatch, the extra batch elements are ignored.
If the checkpoint's nbatch is smaller, batch elements are repeated cyclically.
In either case, warnings are issued. In previous versions, a mismatch in the nbatch values would result in a fatal error.