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

unirep_tutorial.ipynb error #31

Open
miservilla opened this issue Jun 29, 2023 · 0 comments
Open

unirep_tutorial.ipynb error #31

miservilla opened this issue Jun 29, 2023 · 0 comments

Comments

@miservilla
Copy link

Hi there,

Trying to follow instructions to run tutorial jupyter notebook with docker and I continue to get error in the following cell:

`import tensorflow as tf
import numpy as np

Set seeds

#tf.set_random_seed(42)
np.random.seed(42)

if USE_FULL_1900_DIM_MODEL:
# Sync relevant weight files
!aws s3 sync --no-sign-request --quiet s3://unirep-public/1900_weights/ 1900_weights/

# Import the mLSTM babbler model
from unirep import babbler1900 as babbler

# Where model weights are stored.
MODEL_WEIGHT_PATH = "./1900_weights"

else:
# Sync relevant weight files
!aws s3 sync --no-sign-request --quiet s3://unirep-public/64_weights/ 64_weights/

# Import the mLSTM babbler model
from unirep import babbler64 as babbler

# Where model weights are stored.
MODEL_WEIGHT_PATH = "./64_weights"`

AttributeError Traceback (most recent call last)
in ()
21
22 # Import the mLSTM babbler model
---> 23 from unirep import babbler64 as babbler
24
25 # Where model weights are stored.

/notebooks/unirep.py in ()
41
42 # Setup to initialize from the correctly named model files.
---> 43 class mLSTMCell1900(tf.compat.v1.nn.rnn_cell):
44
45 def init(self,

AttributeError: module 'tensorflow.python.util.compat' has no attribute 'v1'`

I am running the following in a conda env:
tf==1.3.0
pd==1.15.4

Please suggest anything to help. Thanks!

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