摘要: for 5¥,联系 阅读全文
posted @ 2022-08-10 08:17 Protect_Winter 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Wide_ResNet_50_2是指50层深,通道数变为ResNet50的两倍的WRN WRN官方说明文档: https://pytorch.org/hub/pytorch_vision_wide_resnet/ 使用官方说明文档加载WRN需要下载。在下载时遇到了 的错误。 常用ResNet预训练模 阅读全文
posted @ 2022-10-16 21:27 Protect_Winter 阅读(798) 评论(0) 推荐(0) 编辑
摘要: import random import torch import matplotlib as pl #生成样本,特征和标签 def synthetic_data(w,b,num_examples): x=torch.normal(0,1,(num_examples,len(w))) #均值为0方差 阅读全文
posted @ 2022-04-21 10:09 Protect_Winter 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Fragment: package com.example.myapplication.ui.dashboard; import static com.example.myapplication.utils.OkHttpUtils.JSON; import android.app.Activity; 阅读全文
posted @ 2022-04-20 20:17 Protect_Winter 阅读(112) 评论(0) 推荐(0) 编辑
摘要: import torch x=torch.arange(4.0) x.requires_grad_(True)#有一个地方存梯度 y=2*torch.dot(x,x)#2倍x和x的内积 y.backward() print(x.grad) x.grad.zero_() y=x.sum() y.bac 阅读全文
posted @ 2022-04-20 10:27 Protect_Winter 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 一、 from PIL import Image from torch.utils.tensorboard import SummaryWriter from torchvision import transforms # python的用法-》tensor数据类型 # 通过transforms.T 阅读全文
posted @ 2022-04-17 20:21 Protect_Winter 阅读(50) 评论(0) 推荐(0) 编辑
摘要: AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.m 阅读全文
posted @ 2022-04-16 18:28 Protect_Winter 阅读(159) 评论(0) 推荐(0) 编辑
摘要: application.xml ##### dev 配置 ####### spring: profiles: active: dev #数据库配置 datasource: url: jdbc:mysql://localhost:3306/restaurant?serverTimezone=GMT%2 阅读全文
posted @ 2022-04-16 18:25 Protect_Winter 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 使用手机测试安卓工程,向controller发送请求。 一、编写API接口(controller) 二、保证电脑和手机使用同一无线局域网 查看手机ip地址 三、关闭电脑防火墙或者设置端口允许连接(必须做) 防火墙、高级规则、入站规则、新建规则、端口、 ps:我的端口号为8888,有的也可能是8080 阅读全文
posted @ 2022-04-12 15:17 Protect_Winter 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 二、代码 #include<iostream> #include<cstdio> using namespace std; int main() { int m, n; cin >> m >> n; int shuzi; int biaoji_x, biaoji_y; char qipan[10][ 阅读全文
posted @ 2022-03-08 20:44 Protect_Winter 阅读(74) 评论(0) 推荐(0) 编辑