Revert "Re-Revert "[Core] zero-copy serializer for pytorch (#12344)" (#12478)" (#12515)

This reverts commit 3f22448834.
This commit is contained in:
Amog Kamsetty
2020-11-30 19:05:55 -08:00
committed by GitHub
parent 8223a33bff
commit f9a99f20dd
5 changed files with 1 additions and 111 deletions
-6
View File
@@ -29,12 +29,6 @@ The numpy array is stored as a read-only object, and all Ray workers on the same
.. tip:: You can often avoid serialization issues by using only native types (e.g., numpy arrays or lists/dicts of numpy arrays and other primitive types), or by using Actors hold objects that cannot be serialized.
PyTorch Tensors
---------------
Ray supports zero-copy serialization for PyTorch tensors by default. However, this would enforcing the importing of
the ``torch`` module. To disable this feature, one can set the environment variable ``RAY_DISABLE_PYTORCH_SERIALIZER=1``.
Serialization notes
-------------------