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
I'm getting this error on my encoder-decoder with attention network if I use opt_level 02 or 03. 01 is working fine :
cell.repeat(self.T -1, 1, 1).permute(1, 0, 2), input_encoded), dim=2)
RuntimeError: Expected object of scalar type Float but got scalar type Half for sequence element 2 in sequence argument at position #1 'tensors'
this is what I'm using:
[encoder, decoder], [encoder_optimizer, decoder_optimizer] = amp.initialize([encoder, decoder], [encoder_optimizer, decoder_optimizer], opt_level="O2")
with amp.scale_loss(loss, [encoder_optimizer, decoder_optimizer]) as scaled_loss:
scaled_loss.backward()
The text was updated successfully, but these errors were encountered:
realiti4
changed the title
Expected object of scalar type Float but got scalar type Half
Expected object of scalar type Float but got scalar type Half with opt_level 02,03
Dec 27, 2019
pytorch: 1.3.1
cuda: 10.1
os: windows 10
I'm getting this error on my encoder-decoder with attention network if I use opt_level 02 or 03. 01 is working fine :
cell.repeat(self.T -1, 1, 1).permute(1, 0, 2), input_encoded), dim=2)
RuntimeError: Expected object of scalar type Float but got scalar type Half for sequence element 2 in sequence argument at position #1 'tensors'
this is what I'm using:
and here is what decoder looks like:
`class Decoder(nn.Module):
The text was updated successfully, but these errors were encountered: