When I do pytest, I got this error: 'CTC' object has no attribute '_modules' (The details are shown at the bottom.)
Is there something changed in the 'speech/models' folder?
I used the old folder (I cloned about two month ago) to replace the current one, and the pytest passed.
When I do pytest, I got this error: 'CTC' object has no attribute '_modules' (The details are shown at the bottom.) Is there something changed in the 'speech/models' folder? I used the old folder (I cloned about two month ago) to replace the current one, and the pytest passed.
=========================================================================================== FAILURES ============================================================================================ ____ test_ctcmodel ____
ctc_test.py:16:
self = <[AttributeError("'CTC' object has no attribute '_modules'") raised in repr()] SafeRepr object at 0x107f3a5f0>, freq_dim = 40, output_dim = 10 config = {'dropout': 0.0, 'encoder': {'conv': [[32, 5, 32, 2]], 'rnn': {'bidirectional': False, 'dim': 16, 'layers': 1}}}
../speech/models/ctc_model.py:15: TypeError ___ test_save ___
io_test.py:12:
self = <[AttributeError("'Model' object has no attribute '_modules'") raised in repr()] SafeRepr object at 0x107f4c170>, input_dim = 120 config = {'dropout': 0.0, 'encoder': {'conv': [[32, 5, 32, 2]], 'rnn': {'bidirectional': False, 'dim': 16, 'layers': 1}}}
../speech/models/model.py:13: TypeError __ test_model ___
model_test.py:15:
self = <[AttributeError("'Model' object has no attribute '_modules'") raised in repr()] SafeRepr object at 0x107f73f80>, input_dim = 40 config = {'dropout': 0.0, 'encoder': {'conv': [[32, 5, 32, 2]], 'rnn': {'bidirectional': False, 'dim': 16, 'layers': 1}}}
../speech/models/model.py:13: TypeError __ test_model ___
seq2seq_test.py:21:
self = <[AttributeError("'Seq2Seq' object has no attribute '_modules'") raised in repr()] SafeRepr object at 0x107f45758>, freq_dim = 120, vocab_size = 11 config = {'decoder': {'embedding_dim': 16, 'layers': 2}, 'dropout': 0.0, 'encoder': {'conv': [[32, 5, 32, 2]], 'rnn': {'bidirectional': False, 'dim': 16, 'layers': 1}}}
../speech/models/seq2seq.py:17: TypeError ============================================================================== 4 failed, 5 passed in 0.79 seconds ===============================================================================