
Pytorch使用
记录实验时遇到的pytorch常用函数接口。
FFHow
Hitsz cs, 2019至今
Research interest:
- AI security
- Computer vision
- Generative model
展开
-
CUDA报错:Out of Memory
RuntimeError: CUDA out of memory. Tried to allocate xx GiB (GPU 0; xx GiB total capacity; xx GiB already allocated; xx GiB free; xx GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid原创 2022-10-28 17:20:04 · 12400 阅读 · 6 评论 -
Python关于函数传列表/Tensor赋值
Python关于函数传列表/Tensor赋值原创 2022-10-23 16:54:25 · 392 阅读 · 0 评论