facebookresearch / open_lth

A repository in preparation for open-sourcing lottery ticket hypothesis code.
MIT License
622 stars 113 forks source link

Added two features to HParams #20

Open wrongu opened 1 year ago

wrongu commented 1 year ago
  1. create_from_dict which mirrors create_from_args. This makes it easier to restore hparams from strings saved in a log file without using CLI.
  2. In DatasetHParams, added subset_start, subset_end, and subset_stride for slicing out subsets of data.