diff --git a/cookbook/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.py b/cookbook/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.py index 3ebcc659bc..7302b99dc9 100644 --- a/cookbook/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.py +++ b/cookbook/case_studies/ml_training/mnist_classifier/pytorch_single_node_and_gpu.py @@ -62,9 +62,9 @@ def wandb_setup(): # Creating the Network # ==================== # -# We use a simple PyTorch model with :py:class:`pytorch:torch.nn.Conv2d` and :py:class:`pytorch:torch.nn.Linear` layers. -# Let's also use :py:func:`pytorch:torch.nn.functional.relu`, :py:func:`pytorch:torch.nn.functional.max_pool2d`, and -# :py:func:`pytorch:torch.nn.functional.relu` to define the forward pass. +# We use a simple PyTorch model with :py:class:`torch:torch.nn.Conv2d` and :py:class:`torch:torch.nn.Linear` layers. +# Let's also use :py:func:`torch:torch.nn.functional.relu`, :py:func:`torch:torch.nn.functional.max_pool2d`, and +# :py:func:`torch:torch.nn.functional.relu` to define the forward pass. class Net(nn.Module): def __init__(self): super(Net, self).__init__() @@ -257,7 +257,7 @@ class Hyperparameters(object): # Training and Evaluating # ======================= # -# The output model using :py:func:`pytorch:torch.save` saves the `state_dict` as described +# The output model using :py:func:`torch:torch.save` saves the `state_dict` as described # `in pytorch docs `_. # A common convention is to have the ``.pt`` extension for the model file. # diff --git a/cookbook/docs/Makefile b/cookbook/docs/Makefile index 37241d58a0..55e0638866 100644 --- a/cookbook/docs/Makefile +++ b/cookbook/docs/Makefile @@ -4,7 +4,11 @@ rsts: .PHONY: html html: - sphinx-build -n -b html . _build && sphinx-build -n -b linkcheck . _build + sphinx-build -n -b html . _build + +.PHONY: linkcheck +linkcheck: + sphinx-build -n -b linkcheck . _build .PHONY: doctest doctest: diff --git a/cookbook/docs/conf.py b/cookbook/docs/conf.py index 4a2de2545d..57bf8eccd9 100644 --- a/cookbook/docs/conf.py +++ b/cookbook/docs/conf.py @@ -443,7 +443,6 @@ def hide_example_page(file_handler): "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), "pandera": ("https://pandera.readthedocs.io/en/stable/", None), "modin": ("https://modin.readthedocs.io/en/stable/", None), - "torch": ("https://pytorch.org/docs/master/", None), "scipy": ("https://docs.scipy.org/doc/scipy/reference", None), "matplotlib": ("https://matplotlib.org", None), "flytekit": ("https://flyte.readthedocs.io/projects/flytekit/en/latest/", None), @@ -453,13 +452,16 @@ def hide_example_page(file_handler): # "flytekit": ("/Users/ytong/go/src/github.com/lyft/flytekit/docs/build/html", None), "flyteidl": ("https://docs.flyte.org/projects/flyteidl/en/latest", None), "flytectl": ("https://docs.flyte.org/projects/flytectl/en/latest/", None), - "pytorch": ("https://pytorch.org/docs/stable/", None), + "torch": ("https://pytorch.org/docs/stable/", None), "greatexpectations": ("https://legacy.docs.greatexpectations.io/en/latest", None), "tensorflow": ( "https://www.tensorflow.org/api_docs/python", "https://github.com/GPflow/tensorflow-intersphinx/raw/master/tf2_py_objects.inv", ), - "whylogs": ("https://whylogs.readthedocs.io/", None), + "whylogs": ("https://whylogs.readthedocs.io/en/latest/", None), + "horovod": ("https://horovod.readthedocs.io/en/stable/", None), + "sklearn": ("https://scikit-learn.org/stable/", None), + "feast": ("https://rtd.feast.dev/en/latest", None), } # Sphinx-tabs config