项目链接 https://github.com/lucidrains/vit-pytorch 注意一下参数设置:
Parameters
image_size: int. Image size. If you have rectangular images, make sure your image size is the maximum of the width and heightpatch_size: int. Number of patches. im…
数组遍历与排序
数组定义
//定义
int a[] new int[5]int[] a new int[5];//带初始值定义
int b[] {1,2,3,4,5};赋值
//定义时赋值
int b[] {1,2,3,4,5};//引用赋值
a[6] 1
a[9] 9 //未赋值为空取值
//通过下表取值,从0开始
b[1] 1
b[2] 2遍历
Test
p…