share RAM usage for data loader workers
share RAM usage for data loader workers

Summary: Add option `serialize` to DatasetFromList. This reduces memory usage significantly when using data loader workers

Reviewed By: ppwwyyxx

Differential Revision: D19896490

fbshipit-source-id: e2ecfd901e72d7c32fdb3ea6ad975c034901ef6b

facebookresearch/detectron2,facebookresearch/detectron2,facebookresearch/detectron2