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
{{ message }}
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
__init__.py fails with AttributeError, max_length does not exist. Fixing this results in a concat error in the Attn class:
45 elif self.method == 'concat':
---> 46 energy = self.attn(torch.cat((hidden, encoder_output), 1))
47 energy = self.v.dot(energy)
48 return energy
RuntimeError: dimension out of range (expected to be in range of [-1, 0], but got 1)
replacing the dimension in line 46 to 0 results in this error:
44
45 elif self.method == 'concat':
---> 46 energy = self.attn(torch.cat((hidden, encoder_output), 0))
47 energy = self.v.dot(energy)
48 return energy
RuntimeError: inconsistent tensor sizes at /opt/conda/conda-bld/pytorch_1512386481460/work/torch/lib/THC/generic/THCTensorMath.cu:157
The text was updated successfully, but these errors were encountered:
__init__.py
fails with AttributeError,max_length
does not exist. Fixing this results in a concat error in theAttn
class:replacing the dimension in line 46 to 0 results in this error:
The text was updated successfully, but these errors were encountered: