1 2 3 4
摘要: 先简单说一下整体流程,利用pytorch训练模型并转化为onnx格式,然后配置好dlinfer,利用cv22infer在cv22平台量化序列化模型,展开推理 1训练模型 1.1处理数据集 参考图片下载地址: https://www.kaggle.com/c/dogs-vs-cats-redux-ke 阅读全文
posted @ 2021-06-07 16:40 Lesning 阅读(2254) 评论(0) 推荐(0) 编辑
摘要: 加油,哦耶 阅读全文
posted @ 2021-05-16 00:06 Lesning 阅读(38) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<algorithm> #include<thread> #include<mutex> #include<Windows.h> #include<condition_variable> using names 阅读全文
posted @ 2021-02-25 03:15 Lesning 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一个非常巧妙的二分题目,太强了 题目要求找一个V的最低端,100000的数组,最多询问100次,那么每次询问两个位置,如果这两个数字是递减,那么低端位置一定在右边,如果是递增,峰值一定在左边,二分就好了, 很可惜没有想出来,二分学的还是不够好 #include<iostream> #include< 阅读全文
posted @ 2021-02-10 03:08 Lesning 阅读(61) 评论(0) 推荐(0) 编辑
摘要: https://codeforc.es/contest/914/problem/D Bash and a Tough Math Puzzle 开动脑筋暴力减枝,就是这样了,没啥可说的 #include<iostream> #include<cmath> #include<queue> #includ 阅读全文
posted @ 2020-12-18 20:28 Lesning 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://codeforc.es/contest/1463/problem/C 这是昨晚的cf题,我很难过没能ac,是因为当时的精神状态不好 这个模拟其实不难写,定义两个东西,当前位置pos和目标位置ans就好了,多睡觉吧,睡醒了才聪明啊 ans小于pos就退步,ans大于pos就进步,写了再 阅读全文
posted @ 2020-12-18 13:21 Lesning 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 今天写少,明天补上 https://codeforc.es/problemset/problem/1197/D Yet Another Subarray Problem 刚开始有点动态规划的想法,后来去写尺取了,完独自 状态转移挺好推,记得特判1(或者有大佬没有特判。。。。) #include<io 阅读全文
posted @ 2020-12-17 21:40 Lesning 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/problemset/problem/1421/D Hexagons 这题说实话想了挺久的,叫上zgh大概摸出来了写法,在虚拟赛里面ac了,有点像区域赛的铜牌题了感觉。 其实写法很简单,就是把六个方向更新一下,然后无脑走 (+1,0),(-1,0),(0 阅读全文
posted @ 2020-12-15 22:10 Lesning 阅读(87) 评论(0) 推荐(0) 编辑
摘要: https://ac.nowcoder.com/acm/contest/9977/C 这题让找基环树删除环上一边之后最大的直径 我枚举删除环上的边写的,很暴力,希望路过的大佬告诉我更加高效的写法 #include<iostream> #include<string> #include<queue> 阅读全文
posted @ 2020-12-15 21:55 Lesning 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 我写了那些题目: https://codeforc.es/problemset/problem/1366/D Two Divisors 这个题目乍一看很难,是个猜测规律的题,实际是可以严格的数学证明 问d1和d2是ans的两个约数,你可以选择两个非1的约数 gcd(d1+d2,ans) 有一个公式, 阅读全文
posted @ 2020-12-14 21:31 Lesning 阅读(81) 评论(0) 推荐(0) 编辑