You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to use sinkhorn matcher for batch sizes >8 (per device) as in the code. It (understandably) fails at #L62 since bs * dim exceeds sampling range available 10 * dim.
ValueError: Cannot take a larger sample than population when 'replace=False'
Hi, I am trying to use
sinkhorn
matcher for batch sizes >8 (per device) as in the code. It (understandably) fails at #L62 sincebs * dim
exceeds sampling range available10 * dim
.ValueError: Cannot take a larger sample than population when 'replace=False'
scenic/scenic/model_lib/matchers/sinkhorn.py
Lines 62 to 63 in 1dc7352
I could replace 10 with
bs
or higher to get it to work. I have few questions though:10
arbitrary?10
multiplied to the sorted vector in #L63? Could you point me to the relevant literature (incl for previous) if this is a specific choice?10
is arbitrary, can I replace10 -> bs
in both #L62 and #L63 while maintaining algorithmic correctness?The text was updated successfully, but these errors were encountered: