Homework 00
colab¶
换 GPU 跑
! 后面接 shell
% 相当于 cd 命令


引入 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¶

Tensor¶
tensor: high-dimensional matrix

constructor

cat

gtadient

neural network layers

流程

epoch

validation

testing

reference¶
Created:
January 3, 2024
Last update: April 24, 2026
Last update: April 24, 2026
Discussion