Closed Smlight closed 2 years ago
Like the last comment in #12 .
If we grub a batch whose size equals to 1, the .squeeze() would lead to the loss of the first dimension. The simple but robust way to overcome this is to replace all .squeeze() with .squeeze(dim)
.squeeze()
.squeeze(dim)
Like the last comment in #12 .
If we grub a batch whose size equals to 1, the
.squeeze()
would lead to the loss of the first dimension. The simple but robust way to overcome this is to replace all.squeeze()
with.squeeze(dim)