Skip to content

tensor flow version conflict for contrib attribute #308

@sugarcane-mk

Description

@sugarcane-mk

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions