{"cells": [{"cell_type": "markdown", "id": "6e4ba87b", "metadata": {"papermill": {"duration": 0.184234, "end_time": "2021-11-01T12:53:25.861842", "exception": false, "start_time": "2021-11-01T12:53:25.677608", "status": "completed"}, "tags": []}, "source": ["\n", "# Tutorial 1: Introduction to PyTorch\n", "\n", "* **Author:** Phillip Lippe\n", "* **License:** CC BY-SA\n", "* **Generated:** 2021-11-01T13:53:15.756718\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": "be75f91b", "metadata": {"papermill": {"duration": 0.186321, "end_time": "2021-11-01T12:53:26.228089", "exception": false, "start_time": "2021-11-01T12:53:26.041768", "status": "completed"}, "tags": []}, "source": ["## Setup\n", "This notebook requires some packages besides pytorch-lightning."]}, {"cell_type": "code", "execution_count": 1, "id": "fd8e8583", "metadata": {"colab": {}, "colab_type": "code", "execution": {"iopub.execute_input": "2021-11-01T12:53:26.597912Z", "iopub.status.busy": "2021-11-01T12:53:26.597438Z", "iopub.status.idle": "2021-11-01T12:53:26.599953Z", "shell.execute_reply": "2021-11-01T12:53:26.599382Z"}, "id": "LfrJLKPFyhsK", "lines_to_next_cell": 0, "papermill": {"duration": 0.191398, "end_time": "2021-11-01T12:53:26.600070", "exception": false, "start_time": "2021-11-01T12:53:26.408672", "status": "completed"}, "tags": []}, "outputs": [], "source": ["# ! pip install --quiet \"torch>=1.6, <1.9\" \"matplotlib\" \"torchmetrics>=0.3\" \"pytorch-lightning>=1.3\""]}, {"cell_type": "markdown", "id": "a910039f", "metadata": {"papermill": {"duration": 0.188063, "end_time": "2021-11-01T12:53:26.983788", "exception": false, "start_time": "2021-11-01T12:53:26.795725", "status": "completed"}, "tags": []}, "source": ["