From 85b6b81f8ffe334338f49fecb78cb16315ae40f5 Mon Sep 17 00:00:00 2001 From: Vincent Moens Date: Thu, 19 Sep 2024 20:28:19 -0700 Subject: [PATCH] [Doc] Fix tutorials ghstack-source-id: d4117bb329425145bc781b457b8de43a67a53732 Pull Request resolved: https://github.com/pytorch/tensordict/pull/1002 --- .github/workflows/docs.yml | 6 +++--- docs/source/reference/nn.rst | 2 +- docs/source/reference/tensordict.rst | 1 - tensordict/__init__.py | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2ab80511e..f6e53d6c7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -88,13 +88,13 @@ jobs: # 10. Build doc cd ./docs - sphinx-build ./source _local_build + make docs cd .. - cp -r docs/_local_build/* "${RUNNER_ARTIFACT_DIR}" + cp -r docs/build/* "${RUNNER_ARTIFACT_DIR}" echo $(ls "${RUNNER_ARTIFACT_DIR}") if [[ ${{ github.event_name == 'pull_request' }} ]]; then - cp -r docs/_local_build/* "${RUNNER_DOCS_DIR}" + cp -r docs/build/* "${RUNNER_DOCS_DIR}" fi upload: diff --git a/docs/source/reference/nn.rst b/docs/source/reference/nn.rst index 943956117..6a87e7c8a 100644 --- a/docs/source/reference/nn.rst +++ b/docs/source/reference/nn.rst @@ -323,7 +323,7 @@ Distributions :toctree: generated/ :template: rl_template_noinherit.rst - NormalParamsExtractor + NormalParamExtractor AddStateIndependentNormalScale CompositeDistribution Delta diff --git a/docs/source/reference/tensordict.rst b/docs/source/reference/tensordict.rst index 6369a3bdc..a47f50a36 100644 --- a/docs/source/reference/tensordict.rst +++ b/docs/source/reference/tensordict.rst @@ -119,7 +119,6 @@ Utils utils.expand_right utils.isin utils.remove_duplicates - is_memmap is_batchedtensor is_tensor_collection make_tensordict diff --git a/tensordict/__init__.py b/tensordict/__init__.py index ffe08138e..fa1611ee0 100644 --- a/tensordict/__init__.py +++ b/tensordict/__init__.py @@ -49,6 +49,7 @@ is_batchedtensor, is_tensorclass, lazy_legacy, + parse_tensor_dict_string, set_lazy_legacy, unravel_key, unravel_key_list,