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: 'AdamWarmup' object has no attribute '_set_hyper' #1361

Open
jyp256 opened this issue Mar 11, 2023 · 0 comments
Open

AttributeError: 'AdamWarmup' object has no attribute '_set_hyper' #1361

jyp256 opened this issue Mar 11, 2023 · 0 comments

Comments

@jyp256
Copy link

jyp256 commented Mar 11, 2023

Hi. I am following the workflow as shown in a blog that uses "keras" package for BERT:
https://blogs.rstudio.com/ai/posts/2019-09-30-bert-r/

When compiling a model, I encountered the following error message:

model %>% compile( k_bert$AdamWarmup(decay_steps=1249, warmup_steps=124L, learning_rate=1e-4), loss = "mse", metrics = c("mae") )

Error in py_call_impl(callable, dots$args, dots$keywords) :
AttributeError: 'AdamWarmup' object has no attribute '_set_hyper'

I cannot find which part of the code was wrong. I would appreciate your help. Thank you.

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