{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "6e716a85-c1aa-4b14-90e5-181840d54cc6", "metadata": {}, "outputs": [], "source": [ "import torch\n", "device = 'cuda' if torch.cuda.is_available() else 'cpu'\n", "import numpy as np\n" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.18" } }, "nbformat": 4, "nbformat_minor": 5 }