{"cells": [{"cell_type": "markdown", "id": "76af104d", "metadata": {"papermill": {"duration": 0.02881, "end_time": "2023-03-15T09:48:47.902138", "exception": false, "start_time": "2023-03-15T09:48:47.873328", "status": "completed"}, "tags": []}, "source": ["\n", "# Tutorial 1: Introduction to PyTorch\n", "\n", "* **Author:** Phillip Lippe\n", "* **License:** CC BY-SA\n", "* **Generated:** 2023-03-15T09:48:36.818823\n", "\n", "This tutorial will give a short introduction to PyTorch basics, and get you setup for writing your own neural networks.\n", "This notebook is part of a lecture series on Deep Learning at the University of Amsterdam.\n", "The full list of tutorials can be found at https://uvadlc-notebooks.rtfd.io.\n", "\n", "\n", "---\n", "Open in [{height=\"20px\" width=\"117px\"}](https://colab.research.google.com/github/PytorchLightning/lightning-tutorials/blob/publication/.notebooks/course_UvA-DL/01-introduction-to-pytorch.ipynb)\n", "\n", "Give us a \u2b50 [on Github](https://www.github.com/Lightning-AI/lightning/)\n", "| Check out [the documentation](https://pytorch-lightning.readthedocs.io/en/stable/)\n", "| Join us [on Slack](https://www.pytorchlightning.ai/community)"]}, {"cell_type": "markdown", "id": "3f83bae6", "metadata": {"papermill": {"duration": 0.012683, "end_time": "2023-03-15T09:48:47.982846", "exception": false, "start_time": "2023-03-15T09:48:47.970163", "status": "completed"}, "tags": []}, "source": ["## Setup\n", "This notebook requires some packages besides pytorch-lightning."]}, {"cell_type": "code", "execution_count": 1, "id": "1c0fa200", "metadata": {"colab": {}, "colab_type": "code", "execution": {"iopub.execute_input": "2023-03-15T09:48:48.009608Z", "iopub.status.busy": "2023-03-15T09:48:48.009280Z", "iopub.status.idle": "2023-03-15T09:48:51.511610Z", "shell.execute_reply": "2023-03-15T09:48:51.510268Z"}, "id": "LfrJLKPFyhsK", "lines_to_next_cell": 0, "papermill": {"duration": 3.518677, "end_time": "2023-03-15T09:48:51.514217", "exception": false, "start_time": "2023-03-15T09:48:47.995540", "status": "completed"}, "tags": []}, "outputs": [{"name": "stdout", "output_type": "stream", "text": ["\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\r\n", "\u001b[0m"]}], "source": ["! pip install --quiet \"torchmetrics>=0.7, <0.12\" \"matplotlib\" \"lightning>=2.0.0rc0\" \"pytorch-lightning>=1.4, <2.0.0\" \"ipython[notebook]>=8.0.0, <8.12.0\" \"torch>=1.8.1, <1.14.0\" \"setuptools==67.4.0\""]}, {"cell_type": "markdown", "id": "d1fb7a14", "metadata": {"papermill": {"duration": 0.012594, "end_time": "2023-03-15T09:48:51.540885", "exception": false, "start_time": "2023-03-15T09:48:51.528291", "status": "completed"}, "tags": []}, "source": ["