zihangdai / xlnet

XLNet: Generalized Autoregressive Pretraining for Language Understanding
Apache License 2.0
6.16k stars 1.18k forks source link

colab notebook can not run under tensorflow 2.0 #267

Open jlff opened 4 years ago

jlff commented 4 years ago

XLNet-imdb-GPU.ipynb Error: module 'tensorflow._api.v2.train' has no attribute 'Optimizer'

Add this fix: %tensorflow_version 1.x