This repository is used to storage the code typed by Sunlight-qwq.
I will study pytorch in this repository.
Using anaconda, which can be downloaded here.
Then create a deep learning environment. First we register powershell as a anaconda prompt:
conda initAfter that, we can create a anaconda environment, with basic data-analyzing tools:
conda create -n dl python=3.9 anaconda
conda activate dlUnder environment dl, we can download pytorch:
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorchWith the volume of pytorch very large (> 1 GB), downloading may cause a long time.
After that, we can start using of the pytorch.
The CUDA is included under anaconda env.
To check if CUDA can be used in pytorch, we can use the following code:
>>> import torch
>>> torch.cuda.is_available()If the answer is True, it means that CUDA can be successfully used.
For PyTorch learning, jupyter notebooks are very useful.
Jupyter notebook has been installed during the creation of anaconda environment, where we can start jupyter easily:
jupyter lab