SASRec.pytorch icon indicating copy to clipboard operation
SASRec.pytorch copied to clipboard

Infinite loop in sample_function

Open EricaCoppolillo opened this issue 3 years ago • 1 comments

In the sample_function (utils module, line 36) there is a "while True" loop, where the sample() result is appended infinitely many times.

EricaCoppolillo avatar Apr 22 '22 18:04 EricaCoppolillo

its copied from the original SASRec repo, the while loop is just to make the sampler keep working.

it would be terminated as a sub process when sampling ended: https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/utils.py#L71

pmixer avatar Apr 25 '22 08:04 pmixer