Pytorch c++ BLSTM

i am trying to solve a BLSTM model in c++ using pytorch. I copied the code from here

however i am getting an error that output is not a member of ltsm1 (which apparently is a tuple of at::Tensor).

i assume this code must have worked at some point but it doesn’t now. any thoughts?

here is the exactly error

|Error (active)|E0135|class std::tuple<at::Tensor, std::tuple<at::Tensor, at::Tensor>> has no member output|testpyt|W:\bb\git\testpyt\srstst.cpp|84||