PetaVision / OpenPV

PetaVision is a C++ library for designing and deploying large-scale neurally-inspired computational models.
http://petavision.github.io
Eclipse Public License 1.0
40 stars 13 forks source link

Initializing from checkpoint with different nbatch #290

Closed peteschultz closed 5 years ago

peteschultz commented 5 years ago

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.

garkenyon commented 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

Patch Links:

— 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 .