Demo for page-02
Install
Install VuePress Plugin Markdown Enhance:
pnpm
pnpm add -D vuepress-plugin-md-enhance
yarn
yarn add -D vuepress-plugin-md-enhance
npm
npm i -D vuepress-plugin-md-enhance
Demo for container
Tips
Get the version of PyTorch:
import logging
import torch
print("PyTorch:", torch.__version__)
device = None
if torch.cuda.is_available():
device = torch.device("cuda")
logging.log("CUDA:", torch.version.cuda)
logging.log("cuDNN:", torch.backends.cudnn.version())
else:
device = torch.device("cpu")
logging.warn(
"CUDA is not available, using CPU instead! Check your CUDA installation!"
)
Details
Install pnpm
:
npm i -g pnpm
or use corepack
:
corepack prepare pnpm@latest --activate