SASRec.pytorch
SASRec.pytorch copied to clipboard
Infinite loop in sample_function
In the sample_function (utils module, line 36) there is a "while True" loop, where the sample() result is appended infinitely many times.
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