自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 MATALAB 重新安装打开时报错 failure loading desktop class

MATALAB 重新安装打开时报错 failure loading desktop class windows环境

2022-10-28 09:47:09 967 1

原创 aws s3 cp 下载断点续传

使用python脚本1.pipinstallawscli下载awscliawsconfigure配置aws需要aws的id和key配置aws2.pipinstallboto3aws的python接口3.pipinstall s3resumable这是github上实现断点续传的包,它会把下载的文件分为15m的包,当下载完成后,会合并成一个https://github.com/immfly/s3resumable例程import boto3fr...

2020-11-05 09:02:42 2380

原创 RuntimeError: Can‘t call numpy() on Variable that requires grad. Use var.detach().numpy() instead.

result = nnet(target_lps['test'],lengths_minibatch,minibatch_size).cpu().numpy()RuntimeError: Can't call numpy() on Variable that requires grad. Use var.detach().numpy() instead.报错原因是需要求导的值不能使用numpy(),在.cpu()之后加detach(),使得变量不需要进行求导result = nnet(targ.

2020-08-28 15:52:25 712

原创 ‘tuple‘ object has no attribute ‘cuda‘

tuple和 list等python的类型没有cuda()属性,因此需要对其中每一个元素进行x.cuda()例如:神经网络中,有一个hidden变量,是tuple类型,需要使用gpu时,直接将hidden变量进行hidden.cuda(),会报错。原函数如下(会报错):def init_hidden(self, batchsize): return (Variable(torch.zeros(2 * self.num_layers, batchsize, self.hid.

2020-08-27 10:48:17 2297

原创 跑pytorch报错: The NVIDIA driver on your system is too old

今天运行pytorch代码发现报错The NVIDIA driver on your system is too old (found version 8000).Please update your GPU driver by downloading and installing a newversion from the URL: http://www.nvidia.com/Download/index.aspxAlternatively, go to: https://pytorch.org

2020-08-25 16:56:40 989

原创 spring-task配置

1.在springxml中配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http:/

2018-07-31 15:52:12 934

原创 关于我遇到的 警告: No mapping found for HTTP request with URI [/transformMVC/supplier/selectSupplier.action]

在学习springmvc时,遇到一个问题,调试了一个上午,大概是这样的:警告: No mapping found for HTTP request with URI [/transformMVC/supplier/selectSupplier.action] in DispatcherServlet with name 'controller'sprimgmvc代码:<?xml versio...

2018-07-10 11:30:46 1091

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除