RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0
Closed this issue · 3 comments
dr-costas commented
Hi,
I'm trying to use the torch.bss_eval_sources
and I'm getting the error:
fast_bss_eval/torch/helpers.py", line 142, in _linear_sum_assignment_with_inf
m = values.min()
RuntimeError: min(): Expected reduction dim to be specified for input.numel() == 0. Specify the reduction dim with the 'dim' argument.
Any pointers on that?
fakufaku commented
Hi @dr-costas Did you figure it out ?
dr-costas commented
Hi,
Well, no, but I side-stepped it. The problem, n my case, occurs when trying to calculate permutations, which I really don't need. So, I don't calculate permutations and all are good :)
fakufaku commented
Ok 😄
I think this may happen when one of the references is all zeros, or if you have some nan or inf in your signal.