{"cells": [{"cell_type": "markdown", "id": "5533b572", "metadata": {"papermill": {"duration": 0.024317, "end_time": "2023-10-11T15:25:54.475662", "exception": false, "start_time": "2023-10-11T15:25:54.451345", "status": "completed"}, "tags": []}, "source": ["\n", "# Tutorial 1: Introduction to PyTorch\n", "\n", "* **Author:** Phillip Lippe\n", "* **License:** CC BY-SA\n", "* **Generated:** 2023-10-11T15:25:36.178524\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": "63bea807", "metadata": {"papermill": {"duration": 0.017252, "end_time": "2023-10-11T15:25:54.512416", "exception": false, "start_time": "2023-10-11T15:25:54.495164", "status": "completed"}, "tags": []}, "source": ["## Setup\n", "This notebook requires some packages besides pytorch-lightning."]}, {"cell_type": "code", "execution_count": 1, "id": "9c70b0ff", "metadata": {"colab": {}, "colab_type": "code", "execution": {"iopub.execute_input": "2023-10-11T15:25:54.539154Z", "iopub.status.busy": "2023-10-11T15:25:54.538982Z", "iopub.status.idle": "2023-10-11T15:25:57.992201Z", "shell.execute_reply": "2023-10-11T15:25:57.990719Z"}, "id": "LfrJLKPFyhsK", "lines_to_next_cell": 0, "papermill": {"duration": 3.470121, "end_time": "2023-10-11T15:25:57.995418", "exception": false, "start_time": "2023-10-11T15:25:54.525297", "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 \"pytorch-lightning>=1.4, <2.1.0\" \"urllib3\" \"ipython[notebook]>=8.0.0, <8.17.0\" \"torchmetrics>=0.7, <1.3\" \"torch>=1.8.1, <2.1.0\" \"matplotlib>=3.0.0, <3.9.0\" \"matplotlib\" \"lightning>=2.0.0\" \"setuptools>=68.0.0, <68.3.0\""]}, {"cell_type": "markdown", "id": "2c11ae7b", "metadata": {"papermill": {"duration": 0.017999, "end_time": "2023-10-11T15:25:58.064174", "exception": false, "start_time": "2023-10-11T15:25:58.046175", "status": "completed"}, "tags": []}, "source": ["