Home

Published

- 1 min read

tensorflow error load model weight decay is not a valid argument, kwargs should be empty for `optimizer_experimental.Optimizer`

img of tensorflow error load model weight decay is not a valid argument, kwargs should be empty for `optimizer_experimental.Optimizer`

The solution for this is noted below

tensorflow error load model weight decay is not a valid argument, kwargs should be empty for optimizer_experimental.Optimizer

Solution

   pip install tensorflow-text # Install tensorflow-text
import tensorflow_text # Inside the code where you load_model
model = load_model('\model.model', compile=False)

Try other methods by searching on the site. That is if this doesn’t work