Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Colab notebook doesn't work #13

Open
shaneh2 opened this issue Jan 17, 2021 · 0 comments
Open

Colab notebook doesn't work #13

shaneh2 opened this issue Jan 17, 2021 · 0 comments

Comments

@shaneh2
Copy link

shaneh2 commented Jan 17, 2021

Hi,
I tried using the Colab notebook you linked to in your README for this repo at:
https://colab.research.google.com/drive/12u-CmB9evMIASNOqJtDW26gmNvSgepBv

However, the last code cell raises an exception:

2021-01-17 19:47:05.890096: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
  File "language_generation.py", line 16, in <module>
    import model_utils
  File "/content/XLNet-gen/model_utils.py", line 292, in <module>
    class AdamWeightDecayOptimizer(tf.train.Optimizer):
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'Optimizer'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant