Skip to main content

pytorch-patterns

Stars8
Forks0
UpdatedMay 10, 2026 at 07:11

PyTorch 代码规范——设备无关、可复现、张量形状管理、nn.Module 组织、训练/评估循环、DataLoader 优化、混合精度、checkpoint。编写或审查 PyTorch 训练脚本、模型、数据管道时触发。 触发词:PyTorch、torch、nn.Module、DataLoader、autograd、AMP、checkpoint、CUDA、tensor shape。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly