Hi,
When I run python test_streaming_transducer.py, The below error occur
AttributeError: 'StreamingTransducerEncoder' object has no attribute 'get_initial_states'
I think attribute get_initial_states is wrong spell
The below codes are in tensorflow_asr/models/streaming_transducer.py
encoded, _ = self.encoder_inference(features, self.encoder.get_initial_states()) # at 260 line
encoded, _ = self.encoder_inference(features, self.encoder.get_initial_states()) # at 313 line
- You should fix
get_initial_states to get_initial_state (s is point)
- And remove
TensorFlowASR-0.4.0-py3.7.egg at your env (in my case, TensorFlowASR-0.4.0-py3.7.egg is in /home/user/anaconda3/envs/tfasr/lib/python3.7/site-packages/)
- then
python setup.py install again
I hope my issue help someone who have problem like me