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

XLnet colab example error . #292

Open
AlexTrinityBlock opened this issue Feb 8, 2023 · 1 comment
Open

XLnet colab example error . #292

AlexTrinityBlock opened this issue Feb 8, 2023 · 1 comment

Comments

@AlexTrinityBlock
Copy link

AlexTrinityBlock commented Feb 8, 2023

When I run XLnet colab example

https://github.com/zihangdai/xlnet/blob/master/notebooks/colab_imdb_gpu.ipynb

It showed the following error:

=========================

Traceback (most recent call last):
File "xlnet/run_classifier.py", line 25, in
import model_utils
File "/content/xlnet/model_utils.py", line 295, in
class AdamWeightDecayOptimizer(tf.train.Optimizer):
AttributeError: module 'tensorflow._api.v2.train' has no attribute 'Optimizer'

@AlexTrinityBlock
Copy link
Author

AlexTrinityBlock commented Feb 8, 2023

Is Tensorflow 1. x no longer supported on google colab ?

What should I do ?

If it's need conda for support Tensorflow 1. x , please tell me how to do that I can't finish it myself.

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