Update balanced_positive_negative_sampler.py (#93)
use cuda version torch.randperm to avoid copy from gpu to cpu and a fatal bug in multi-thread cpu version
Showing
Please
register
or
sign in
to comment
use cuda version torch.randperm to avoid copy from gpu to cpu and a fatal bug in multi-thread cpu version