You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Getting Error When importing "import apply_regularization, l2_regularizer" #15
Activity
TruongThuyLiem commentedon Jun 1, 2021
You can try with tensorflow-gpu==1.15
amithadiraju1694 commentedon Feb 19, 2022
You could also try to to just apply L2 regularization directly than a two-step process as in tf 1.15, I did this to make it work on tf 2.7.3:
`from tensorFlow.keras.regularizers import L2
........
l2_reg = L2(self.lam) # inside build_graph function
reg_var = l2_reg(self.weights)
`