You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My pytorch is 1.1.0. x.data.resize(batchSize, inputSize, 1)_ in NCEAverage.py doesn't work. with torch.no_grad(): x.resize(batchSize, inputSize, 1)_ still doesn't work.
I replaced it as _ x.unsqueeze(2))_ .
I wonder if this function works the same as x.data.resize(batchSize, inputSize, 1)_
The text was updated successfully, but these errors were encountered:
It seems that robert's suggestions can work, but gradOutput.data.resize_(batchSize, 1, K+1) in around line 60 should be changed to gradOutput.resize_(batchSize, 1, K + 1).
My pytorch is 1.1.0.
x.data.resize(batchSize, inputSize, 1)_ in NCEAverage.py doesn't work.
with torch.no_grad(): x.resize(batchSize, inputSize, 1)_ still doesn't work.
I replaced it as _ x.unsqueeze(2))_ .
I wonder if this function works the same as x.data.resize(batchSize, inputSize, 1)_
The text was updated successfully, but these errors were encountered: