In [onemodel_sg-one.py](https://github.com/xiaomengyc/SG-One/blob/master/oneshot/onemodel_sg-one.py#L37) line 37, the behaviour of `torch.sum(pos_mask)` will be different if the batch size is not 1. It is better to write it batchsize-agnostic.
In onemodel_sg-one.py line 37, the behaviour of
torch.sum(pos_mask)will be different if the batch size is not 1.It is better to write it batchsize-agnostic.