Open Zha0q1 opened 3 years ago
I think we should set the B[1] to int32/int64.
I think we should set the B[1] to int32/int64.
I just realized there is a parameter dtype
in topk to control the type of the indices output
Also had a quick discussion with Rohit. We might force indices output to use int32/64 in 2.0. In v.1x we might want to keep the current behavior so that we do not break things
Yes, +1 for forcing the change in 2.0.
It looks like regardless of the input type the indices output
B[1]
is always of type float32. I checked the c++ code and I think it's supposed to be int32/64? Is this behavior by design?@access2rohit @leezu @sxjscience @szha