add support of gather_object (#238)
* add support of gather_object
fixes #235
* Update src/accelerate/utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/accelerate/utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* skip error_on_other_type
* fix picklable object described as any object
* do not concat gathered objects
* Update utils.py
* format code
* Update src/accelerate/utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/accelerate/utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>