diff --git a/doc/source/data/working-with-pytorch.rst b/doc/source/data/working-with-pytorch.rst index 7e642b8cd71d..a101333379b3 100644 --- a/doc/source/data/working-with-pytorch.rst +++ b/doc/source/data/working-with-pytorch.rst @@ -19,7 +19,7 @@ Iterating over Torch tensors for training ----------------------------------------- To iterate over batches of data in Torch format, call :meth:`Dataset.iter_torch_batches() `. Each batch is represented as `Dict[str, torch.Tensor]`, with one tensor per column in the dataset. -This is useful for training Torch models with batches from your dataset. For configuration details such as providing a ``collate_fn`` for customizing the conversion, see `the API reference `. +This is useful for training Torch models with batches from your dataset. For configuration details such as providing a ``collate_fn`` for customizing the conversion, see the API reference for :meth:`iter_torch_batches() `. .. testcode:: @@ -84,7 +84,7 @@ For more details, see the :ref:`Ray Train user guide `. Transformations with Torch tensors ---------------------------------- -Transformations applied with `map` or ``map_batches`` can return Torch tensors. +Transformations applied with `map` or `map_batches` can return Torch tensors. .. caution:: @@ -159,7 +159,7 @@ For more information on transforming data, see :ref:`Transforming data ` to iterate over batches of the dataset. -The following table describes how the arguments for PyTorch DataLoader map to Ray Data. Note the behavior may not necessarily be identical. For exact semantics and usage, :meth:`see the API reference `. +The following table describes how the arguments for PyTorch DataLoader map to Ray Data. Note the behavior may not necessarily be identical. For exact semantics and usage, see the API reference for :meth:`iter_torch_batches() `. .. list-table:: :header-rows: 1 diff --git a/doc/source/data/working-with-tensors.rst b/doc/source/data/working-with-tensors.rst index 6574e52e572d..b0f40f959e18 100644 --- a/doc/source/data/working-with-tensors.rst +++ b/doc/source/data/working-with-tensors.rst @@ -1,7 +1,7 @@ .. _working_with_tensors: -Working with Tensors -==================== +Working with Tensors / NumPy +============================ N-dimensional arrays (in other words, tensors) are ubiquitous in ML workloads. This guide describes the limitations and best practices of working with such data.