Skip to content
Self-Knowing

Homework 00

colab

GPU

! 后面接 shell

% 相当于 cd 命令

Alt text

Alt text

引入 pytorch

import torch
torch.cuda.is_available() # is GPU available
# Outputs True if running with GPU
<div markdown="1" style="margin-top: -30px; font-size: 0.75em; opacity: 0.7;">
:material-circle-edit-outline: 约 36 个字 :fontawesome-solid-code: 3 行代码 
</div>

pytorch

Alt text

Tensor

tensor: high-dimensional matrix

Alt text

constructor

Alt text

cat

Alt text

gtadient

Alt text

neural network layers

Alt text

流程

Alt text

epoch

Alt text

validation

Alt text

testing

Alt text

reference

PyTorch Documentation


Created: January 3, 2024
Last update: April 24, 2026

Discussion