- 博客(14)
- 收藏
- 关注
原创 torch.repeat()、torch.cat()、torch.max()函数
torch.repeat()、torch.cat()、torch.max()函数
2022-08-27 20:22:33
375
原创 torch.from_numpy()、torch.view()、torch.masked_select()、 F.softmax() 、F.log_softmax()、torch.mean()函数
torch.from_numpy()、torch.view()、torch.masked_select()、 F.softmax() 、F.log_softmax()、torch.mean()函数
2022-08-27 20:20:22
966
原创 numpy inf、reshape()、random.randint()、bincount()函数
numpy inf、reshape()、random.randint()、bincount()函数
2022-08-27 20:11:37
344
原创 Expected all tensors to be on the same device, but found at least two device, cuda: 0 and cpu!
Expected all tensors to be on the same device, but found at least two device, cuda: 0 and cpu!
2022-08-27 20:05:54
365
原创 mysql 安装教程
mysql 安装下载地址:https://dev.mysql.com/downloads/mysql/下载完后,解压到你想放置的目录下,这里我将解压后的文件夹放在 D:\mysql-8.0.24-winx64 下。接下来我们需要配置下 MySQL 的配置文件打开刚刚解压的文件夹 D:\mysql-8.0.24-winx64 ,在该文件夹下创建 my.ini 配置文件,编辑 my.ini 配置以下基本信息:(注意修改为自己的安装目录)[client]# 设置mysql客户端默认字符集defau
2021-04-28 17:53:43
163
原创 java基础
一、基本功1. 面向对象的特征2. final,finally,finalize的区别3. int 和 Integer的区别Ingeter是int的包装类,int的初值为0,Ingeter的初值为null13 int i = 128;14 Integer i2 = 128;15 Integer i3 = new Integer(128);16 //Integer会自动拆箱为int,所以为true17 System.out.println(i == i2);18 System.o
2020-06-30 17:11:15
204
原创 微信JSAPI公共号支付及常见问题处理
微信官方文档地址:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_3前期准备:设置支付目录设置授权域名开发步骤:调用微信统一下单接口https://api.mch.weixin.qq.com/pay/unifiedorderhttps://api.mch.weixin.qq.com/pay/unifiedorder获取微信支付四大参数参数名参数说明appid公共号appIdmch_
2020-06-16 23:32:47
1442
1
原创 微信网页授权登录java后台实现
建议先阅读微信开发-网页授权登录官方文档:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html1、第一步:用户同一授权,获取code 前台请求链接:https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_typ
2020-06-01 23:41:54
1975
1
原创 mysql 解析json串中的对象值 (if、locate、substring_index)
描述:提取extra中的信息,extra为json对象字符串,格式为{“xxx1”:xxx1,“company”:“company_test”,“xxx2”:xxx2,“xxx3”:xxx3,“xxx4”:xxx4,“remark”:“remark_test”}需要提取里面的公司信息和备注信息所用函数:if(判断表达式)、locate(判断字符是否存在)、substring_index(截取字...
2020-04-17 11:25:49
729
原创 java 8 lambda表达式list操作 分组、排序
java 8 提供的lambda表达式提供了一些对list 的便捷操作,包括分组、排序等。分组 //分组 Map<String, List<User>> groupBySex = userList.stream().collect(Collectors.groupingBy(User::getSex)); //遍历分组 for (Map.Entry<...
2020-04-15 17:31:44
3737
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅