when counts[k] is zero, an stack error occurs.
Danden1 opened this issue · comments
Yongha Kwon commented
In sample function, when counts[k] is zero, x_k = torch.stack([d_k.sample() for _ in range(int(counts[k]))]) is error.
So, I think need add this.
if counts[k] == 0:
continue
Lucas Deecke commented