摘要: Transformer架构这五年来深受人们重视。 本文是以逐行代码的形式对原论文进行注释的版本。 本文对原论文一部分章节进行了重新排序和删除,并在整个文档中添加了注释。 本文本身是一个可以运行的笔记(ipynb),理论上完全可以直接复现。 阅读全文
posted @ 2024-04-07 16:18 Icys 阅读(602) 评论(0) 推荐(1) 编辑
摘要: T7.1 #include <iostream> using namespace std; int main() { int lower,upper; cin>>lower>>upper; if(lower > upper || upper > 100 || lower <=0) { cout<<" 阅读全文
posted @ 2024-03-29 15:07 Icys 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 只使用OpenCV进行文档矫正 阅读全文
posted @ 2024-03-26 00:35 Icys 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 山东大学23强基班计算机导论第三次习题答案 7-1 计算分段函数[1] 分数 10 作者 颜晖 单位 浙大城市学院 本题目要求计算下列分段函数f(x)的值: 输入格式: 输入在一行中给出实数x。 输出格式: 在一行中按“f(x) = result”的格式输出,其中x与result都保留一位小数。 输 阅读全文
posted @ 2024-03-21 23:47 Icys 阅读(79) 评论(0) 推荐(0) 编辑
摘要: T1 #include <stdio.h> int main() { int fahr = 150; int celsius = 5 * (fahr - 32) / 9; printf("fahr = %d, celsius = %d", fahr, celsius); } T2 #include 阅读全文
posted @ 2024-03-15 15:18 Icys 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 山东大学23强基班计算机导论第一次习题答案 T1. #include <stdio.h> int main() { printf("Hello World!"); return 0; } T2. #include <stdio.h> int main() { printf("Programming 阅读全文
posted @ 2024-03-08 14:23 Icys 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 利用WinRT实现DX截图的方法 阅读全文
posted @ 2024-03-06 16:48 Icys 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 同学问的课后作业,顺便加了写注释。 #include<stdio.h> /* * 注意 每周的第一天是星期天 */ int main() { int day_per_mo[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 12个 阅读全文
posted @ 2024-02-01 00:58 Icys 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 最近打PKU的HPCGAME留下的代码,速度不是很快 const int BLOCK_SIZE = 1024; const int BLOCK_SIZE2 = 256; inline static void block_avx256_16x2( // 电脑不支持AVX512捏 int n,int K 阅读全文
posted @ 2024-02-01 00:51 Icys 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 最近打PKU的HPCGAME用的代码,这里只用上了20个zmm寄存器,改变block的大小应该还能优化一下速度。 代码只考虑了方阵,其他非2^n次方阵要自己改代码。具体原理很简单,看看代码就差不多知道。 const int BLOCK_SIZE = 1024; const int BLOCK_SIZ 阅读全文
posted @ 2024-02-01 00:47 Icys 阅读(18) 评论(0) 推荐(0) 编辑