Download ml-stable-diffusion/mlx/docs/src/usage/using_streams.rst from Fahad-S/FastVLM_SANA: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/docs/src/usage/using_streams.rst
- Command line
-
hf download hf://Fahad-S/FastVLM_SANA/ml-stable-diffusion/mlx/docs/src/usage/using_streams.rst
-
curl -L -o using_streams.rst https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/docs/src/usage/using_streams.rst
651 Bytes
| .. _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 | |
| 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)``. | |