Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensor flow version conflict for contrib attribute #308

Open
sugarcane-mk opened this issue Jan 25, 2025 · 0 comments
Open

tensor flow version conflict for contrib attribute #308

sugarcane-mk opened this issue Jan 25, 2025 · 0 comments

Comments

@sugarcane-mk
Copy link

The following error arises due to contrib attribute is no longer exist in tensor flow 2.x and 1.x version has been depreciated

Notebook

Populating the interactive namespace from numpy and matplotlib

/usr/local/lib/python3.11/dist-packages/IPython/core/magics/pylab.py:159: UserWarning: pylab import has clobbered these variables: ['Text']
`%matplotlib` prevents importing * from pylab and numpy
  warn("pylab import has clobbered these variables: %s"  % clobbered +

---------------------------------------------------------------------------

AttributeError                            Traceback (most recent call last)

[<ipython-input-9-d7eab0cf9960>](https://localhost:8080/#) in <cell line: 0>()
     24 
     25 from tacotron_pytorch import Tacotron
---> 26 from synthesis import tts as _tts
     27 
     28 # For Audio/Display purposes

2 frames

[/content/tacotron_pytorch/hparams.py](https://localhost:8080/#) in <module>
      3 
      4 # Default hyperparameters:
----> 5 hparams = tf.contrib.training.HParams(
      6     # Comma-separated list of cleaners to run on text prior to training and eval. For non-English
      7     # text, you may want to use "basic_cleaners" or "transliteration_cleaners" See TRAINING_DATA.md.

AttributeError: module 'tensorflow' has no attribute 'contrib'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant