Skip to content

AttributeError: 'StreamingTransducerEncoder' object has no attribute 'get_initial_states' #68

@goreng2

Description

@goreng2

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
  1. You should fix get_initial_states to get_initial_state (s is point)
  2. 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/)
  3. then python setup.py install again

I hope my issue help someone who have problem like me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions