skiprnn_pytorch icon indicating copy to clipboard operation
skiprnn_pytorch copied to clipboard

ModuleNotFoundError: No module named 'basic_rnn_cells'

Open susht3 opened this issue 8 years ago • 3 comments

when i run your code, i get this error:

Traceback (most recent call last): File "01_adding_task.py", line 19, in from util.graph_definition import * File "/mnt/d/skiprnn_pytorch/util/graph_definition.py", line 14, in from rnn_cells.custom_cells import CBasicLSTMCell, CBasicGRUCell,
File "/mnt/d/skiprnn_pytorch/rnn_cells/custom_cells.py", line 7, in from basic_rnn_cells import BasicLSTMCell, BasicGRUCell ModuleNotFoundError: No module named 'basic_rnn_cells'

susht3 avatar Feb 04 '18 12:02 susht3

Have you executed the 01_adding_task.py code from the root folder skiprnn?

gitabcworld avatar Feb 05 '18 06:02 gitabcworld

You should change this line. #Delete from basic_rnn_cells import BasicLSTMCell, BasicGRUCell #Add from rnn_cells.basic_rnn_cells import BasicLSTMCell, BasicGRUCell

Then it should work well.

BinWang28 avatar Feb 14 '18 19:02 BinWang28

Thanks for the help. I have changed these paths at the code.

gitabcworld avatar Feb 16 '18 18:02 gitabcworld