Hello
I want to use the downloaded code which uses pytorch 1.01.
hx, cx = nn._VF.lstm_cell(
embedding
prev_hidden,
params[“lstm.weight_ih”],
params[“lstm.weight_hh”],
params[“lstm.bias_ih”],
params[“lstm.bias_hh”],
)
I installed torch version 1.13.0+cu117 in the new environment, but when I run the above code, I get the following error:
AttributeError: module ‘torch.nn’ has no attribute ‘_VF’
Please advise on how to fix the error or what are the last four input parameters in lstm_cell and how can I use this code in PyTorch 2 if there are 2 input parameters in PyTorch 2 version.
Thank you for your guidance