I am facing the same issue while using LSTM. I used the Visual Studio 2017 debug to find this error message:
Unhandled exception at 0x00007FFF493FD7B5 (ucrtbase.dll) in python3.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000C094C13FE8). occurred
OS: Windows 10
Python: 3.6
PyTorch: 0.4.0
Is this something fixed in this PR#6873 15 ?