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

AttributeError: ...has no attribute 'Optimizer' #12

Open
pandas-hunter opened this issue Apr 28, 2020 · 0 comments
Open

AttributeError: ...has no attribute 'Optimizer' #12

pandas-hunter opened this issue Apr 28, 2020 · 0 comments

Comments

@pandas-hunter
Copy link

pandas-hunter commented Apr 28, 2020

What should I do to fix this attribute error?

AttributeError: module 'tensorflow_core._api.v2.train' has no attribute 'Optimizer'

code:

import bert
from bert import run_classifier
from bert import optimization
from bert import tokenization
from bert import modeling

image

My tensorflow version is 2.0.0, but I got the same error on 2.1.
bert-tensorflow version 1.0.1

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