服务器类型:slurm管理下的超算服务器
系统:linux
python版本:3.8
虚拟环境:virtualenv
pytorch版本:1.10
问题描述:在服务器上用上卡跑模型时
python -u train.py
遇到以下报错
terminate called after throwing an instance of 'c10::Error'
what(): chunk expects at least a 1-dimensional tensor
Exception raised from chunk at /tmp/coulombc/pytorch_build_2021-11-09_14-57-01/avx2/python3.8/pytorch/aten/src/ATen/native/TensorShape.cpp:546 (most rece