理论上pytorch是支持cpu训练的,可以参考这篇博文:https://blog.csdn.net/ALL_BYA/article/details/124377701