tensorrtx icon indicating copy to clipboard operation
tensorrtx copied to clipboard

output 与prob关系咨询

Open ygygyeah opened this issue 1 year ago • 1 comments

您好,请教一下。 在yolov5.cpp中,这里的 &prob[b * OUTPUT_SIZE] 应该是prob数组中某一个元素的地址,在common.hpp中,output应该是&prob[b * OUTPUT_SIZE]的指针变量,但是在下面代码为什么有取output下标的操作呢? image

image

ygygyeah avatar Sep 08 '22 14:09 ygygyeah

p[idx] => *(p+idx) , c 指针基本操作

ausk avatar Sep 22 '22 09:09 ausk