Skip to content

Commit

Permalink
docs(python): note multiprocessing incompatibility (#2506)
Browse files Browse the repository at this point in the history
Fixes #2405
  • Loading branch information
wjones127 authored Jun 21, 2024
1 parent cbd0d8e commit 735f5b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/integrations/pytorch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ Available samplers:

- :class:`lance.sampler.ShardedFragmentSampler`
- :class:`lance.sampler.ShardedBatchSampler`

.. warning::
For multiprocessing you should probably not use fork as lance is
multi-threaded internally and fork and multi-thread do not work well.
Refer to `this discussion <https://discuss.python.org/t/concerns-regarding-deprecation-of-fork-with-alive-threads/33555>`_.
5 changes: 4 additions & 1 deletion docs/integrations/tensorflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@ workers.
for batch in ds:
print(batch)
.. warning::
For multiprocessing you should probably not use fork as lance is
multi-threaded internally and fork and multi-thread do not work well.
Refer to `this discussion <https://discuss.python.org/t/concerns-regarding-deprecation-of-fork-with-alive-threads/33555>`_.

0 comments on commit 735f5b2

Please sign in to comment.