Is your feature request related to a problem? Please describe.
find_idx that accepts dim argument.
Describe the solution you'd like
- For an MxN matrix, I would like to call
find_idx across the rows.
- Output tensor would now be 2D here, with each row containing the indices.
num_found would now be a 1D vector with each entry containing the number of matches per row.
Describe alternatives you've considered
I call the current find_idx on each row of my matrix in a loop.
Additional context
We can simplify to support only matrices. Thanks!
Is your feature request related to a problem? Please describe.
find_idxthat accepts dim argument.Describe the solution you'd like
find_idxacross the rows.num_foundwould now be a 1D vector with each entry containing the number of matches per row.Describe alternatives you've considered
I call the current find_idx on each row of my matrix in a loop.
Additional context
We can simplify to support only matrices. Thanks!