注意参数/root/blog/需要使用绝对路径 其他的参数可以很容易的在manual中找到意义。 备份与还原 #docker save hexo3 > /root/hexo3.tar #docker load < /root/hexo3.tar 注意这里使用save而不是export 因为需要保存历史层 参考导出大小: du -h /root/hexo3.tar 261M/root/hexo3.tar 从以上所有的工作中,...
use_gpu = args.use_gpu torch.manual_seed(args.seed) device = torch.device("mps" if args.use_gpu else "cpu") train_kwargs = {'batch_size': args.batch_size} test_kwargs = {'batch_size': args.test_batch_size} if use_gpu: cuda_kwargs = {'num_workers': 1, 'pin_memory': Tr...