mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-19 10:48:09 +08:00
docs up
This commit is contained in:

committed by
CircleCI Docs

parent
d03b91923e
commit
d67cd9230c
18
docs/build/html/_sources/usage/using_streams.rst
vendored
Normal file
18
docs/build/html/_sources/usage/using_streams.rst
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
.. _using_streams:
|
||||
|
||||
Using Streams
|
||||
=============
|
||||
|
||||
.. currentmodule:: mlx.core
|
||||
|
||||
Specifying the :obj:`Stream`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
All operations (including random number generation) take an optional
|
||||
keyword argument ``stream``. The ``stream`` kwarg specifies which
|
||||
:obj:`Stream` the operation should run on. If the stream is unspecified then
|
||||
the operation is run on the default stream of the default device:
|
||||
``mx.default_stream(mx.default_device())``. The ``stream`` kwarg can also
|
||||
be a :obj:`Device` (e.g. ``stream=my_device``) in which case the operation is
|
||||
run on the default stream of the provided device
|
||||
``mx.default_stream(my_device)``.
|
Reference in New Issue
Block a user