返回顶部
摘要: 二进制最右边的1 :error&(~error+1) 有符号数右移是用符号位填补 把一个整数减去1,再和原来的整数做与运算,会整数最右边的1变成0 二分: left=0,right=nums.length的时候 while(left<right)退出的时候left=right,[left,right 阅读全文
posted @ 2022-09-22 16:41 tianyudizhua 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstdio> #include<cmath> using namespace std; typedef long long int LL; const LL maxn=100010; LL prime[maxn]; bool p[maxn]= 阅读全文
posted @ 2022-04-09 12:18 tianyudizhua 阅读(70) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; const int maxn=100010; int data[maxn]; bool judge(int l,int r,int x) { for(int i=l;i<=r;i++) { for(int j=l;j<= 阅读全文
posted @ 2022-04-09 12:14 tianyudizhua 阅读(154) 评论(0) 推荐(0) 编辑
摘要: cv: 图像分类(传统) 目标检测(传统) 图像分割 目标跟踪 OCR文字识别 图像滤波与降噪 图像增强 风格迁移 三维重建 图像检索 GAN(水) AAAI ICML NIPS https://link.zhihu.com/?target=https%3A//www.aclweb.org/anth 阅读全文
posted @ 2022-03-14 16:27 tianyudizhua 阅读(97) 评论(0) 推荐(0) 编辑
摘要: CV三大顶级会议:ICCV ECCV CVPR cv baseline AlexNet:ImageNet Classification with Deep Convolutional Neural Networks 基于深度卷积神经网络的图像分类 VGG:VERY DEEP CONVOLUTIONA 阅读全文
posted @ 2022-03-14 15:04 tianyudizhua 阅读(45) 评论(0) 推荐(0) 编辑
摘要: baseline: 1、word2vector:Efficient Estimation of Word Representations in Vector Space(基于向量空间中词表示的有效估计) 2、glove:GloVe: Global Vectors for Word Represent 阅读全文
posted @ 2022-03-14 12:29 tianyudizhua 阅读(172) 评论(0) 推荐(0) 编辑
摘要: void BFS_bothsides()//双向BFS { if(s1.state==s2.state)//起点终点相同时要特判 { //do something found=true; return; } bool found=false; memset(visited,0,sizeof(visi 阅读全文
posted @ 2021-11-15 10:31 tianyudizhua 阅读(51) 评论(0) 推荐(0) 编辑
摘要: pytorch基础知识 import torch x = torch.tensor([2,3,4], dtype=torch.float) # 创建一个Tensor,值为[2.,3.,4.],类型为 float # 创建一个需要求 梯度的 tensor。 x2 = torch.tensor([2,3 阅读全文
posted @ 2021-11-03 21:06 tianyudizhua 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8import torchimport torch.nn as nnimport torch.nn.functional as Ffrom torch.autograd import Variableclass Net(nn.Module): #定义Net的初始化函数,这个函 阅读全文
posted @ 2021-11-03 19:28 tianyudizhua 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 1、idea设置encoding maven compile auto 2、version control crtl+d进行代码对比 3、crtl+r替换 4、mybatis插件 5、ideahttp文件 6、将布局写在app.vue,将各页面变化部分放各自路由页面 阅读全文
posted @ 2021-06-15 08:41 tianyudizhua 阅读(277) 评论(0) 推荐(0) 编辑