From c377ace3ca4ae7c195123ca58f7cb02577b503b9 Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Tue, 19 Oct 2021 11:38:54 +1000 Subject: [PATCH] add file to test for cuda --- test-cuda.ipynb | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test-cuda.ipynb diff --git a/test-cuda.ipynb b/test-cuda.ipynb new file mode 100644 index 0000000..dd7aae8 --- /dev/null +++ b/test-cuda.ipynb @@ -0,0 +1,51 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import torch\n", + "\n", + "# Should print True if CUDA-enabled GPU is available, if not will print False\n", + "torch.cuda.is_available()" + ] + } + ], + "metadata": { + "interpreter": { + "hash": "3fbe1355223f7b2ffc113ba3ade6a2b520cadace5d5ec3e828c83ce02eb221bf" + }, + "kernelspec": { + "display_name": "Python 3.9.7 64-bit (conda)", + "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.9.7" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +}