{"cells": [{"cell_type": "markdown", "id": "c1ca2a69", "metadata": {"papermill": {"duration": 0.179789, "end_time": "2021-12-04T15:53:22.277549", "exception": false, "start_time": "2021-12-04T15:53:22.097760", "status": "completed"}, "tags": []}, "source": ["\n", "# Tutorial 1: Introduction to PyTorch\n", "\n", "* **Author:** Phillip Lippe\n", "* **License:** CC BY-SA\n", "* **Generated:** 2021-12-04T16:52:44.026092\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/latest/)\n", "| Join us [on Slack](https://join.slack.com/t/pytorch-lightning/shared_invite/zt-pw5v393p-qRaDgEk24~EjiZNBpSQFgQ)"]}, {"cell_type": "markdown", "id": "8387d057", "metadata": {"papermill": {"duration": 0.177673, "end_time": "2021-12-04T15:53:22.631831", "exception": false, "start_time": "2021-12-04T15:53:22.454158", "status": "completed"}, "tags": []}, "source": ["## Setup\n", "This notebook requires some packages besides pytorch-lightning."]}, {"cell_type": "code", "execution_count": 1, "id": "9d8201a6", "metadata": {"colab": {}, "colab_type": "code", "execution": {"iopub.execute_input": "2021-12-04T15:53:22.994731Z", "iopub.status.busy": "2021-12-04T15:53:22.994231Z", "iopub.status.idle": "2021-12-04T15:53:25.459580Z", "shell.execute_reply": "2021-12-04T15:53:25.459996Z"}, "id": "LfrJLKPFyhsK", "lines_to_next_cell": 0, "papermill": {"duration": 2.651811, "end_time": "2021-12-04T15:53:25.460282", "exception": false, "start_time": "2021-12-04T15:53:22.808471", "status": "completed"}, "tags": []}, "outputs": [], "source": ["! pip install --quiet \"torchmetrics>=0.3\" \"matplotlib\" \"torch>=1.6, <1.9\" \"pytorch-lightning>=1.3\""]}, {"cell_type": "markdown", "id": "3ef762bf", "metadata": {"papermill": {"duration": 0.180076, "end_time": "2021-12-04T15:53:25.821045", "exception": false, "start_time": "2021-12-04T15:53:25.640969", "status": "completed"}, "tags": []}, "source": ["