{"cells": [{"cell_type": "markdown", "id": "3430d66a", "metadata": {"papermill": {"duration": 0.017199, "end_time": "2022-05-12T11:44:36.489157", "exception": false, "start_time": "2022-05-12T11:44:36.471958", "status": "completed"}, "tags": []}, "source": ["\n", "# Tutorial 1: Introduction to PyTorch\n", "\n", "* **Author:** Phillip Lippe\n", "* **License:** CC BY-SA\n", "* **Generated:** 2022-05-12T13:44:14.531736\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/PytorchLightning/pytorch-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": "63c4bc69", "metadata": {"papermill": {"duration": 0.014088, "end_time": "2022-05-12T11:44:36.519910", "exception": false, "start_time": "2022-05-12T11:44:36.505822", "status": "completed"}, "tags": []}, "source": ["## Setup\n", "This notebook requires some packages besides pytorch-lightning."]}, {"cell_type": "code", "execution_count": 1, "id": "89b5dbf7", "metadata": {"colab": {}, "colab_type": "code", "execution": {"iopub.execute_input": "2022-05-12T11:44:36.552939Z", "iopub.status.busy": "2022-05-12T11:44:36.552077Z", "iopub.status.idle": "2022-05-12T11:44:40.698923Z", "shell.execute_reply": "2022-05-12T11:44:40.697901Z"}, "id": "LfrJLKPFyhsK", "lines_to_next_cell": 0, "papermill": {"duration": 4.167203, "end_time": "2022-05-12T11:44:40.701322", "exception": false, "start_time": "2022-05-12T11:44:36.534119", "status": "completed"}, "tags": []}, "outputs": [], "source": ["! pip install --quiet \"torch>=1.8\" \"pytorch-lightning>=1.4\" \"ipython[notebook]\" \"setuptools==59.5.0\" \"torchmetrics>=0.7\" \"matplotlib\""]}, {"cell_type": "markdown", "id": "faa9e81e", "metadata": {"papermill": {"duration": 0.012897, "end_time": "2022-05-12T11:44:40.728633", "exception": false, "start_time": "2022-05-12T11:44:40.715736", "status": "completed"}, "tags": []}, "source": ["