printf("w.shape:%s \n",merge_res->filter1.shape().str().c_str());
std::cout<<FILE<<LINE<<" name: "<<magik_name<<" filter1.size: "<<filter1_size<<std::endl;
// if(false){
if(true){
for (int kh = 0; kh < 3; kh++) {
for (int kw = 0; kw < 3; kw++) {
for (int sp = 0; sp < 4; sp++) {
printf("kh: %d kw: %d sp: %d\n", kh, kw, sp);
for (int i = 0; i < 32; i++) {
for (int j = 0; j < 8; j++) {
int idx = kh * 3 * 32 * 8 + kw * 32 * 8 + sp * 8 * 32 +
i * 8 + j;
printf("%3d ", ((uint8_t*)filter1_ptr)[idx]);
}
printf("\n");
}
printf("\n");
}
printf("\n");
}
printf("\n");
}
}
标签:kh,sp,读取,int,打印,2bit,++,kw,printf
From: https://www.cnblogs.com/WEIWEI1095/p/18186764