We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi I am getting error while running the notebook in line where we are importing
from tensorflow.contrib.layers import apply_regularization, l2_regularizer
`--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in 15 16 import tensorflow as tf ---> 17 from tensorflow.contrib.layers import apply_regularization, l2_regularizer 18 19 import bottleneck as bn
ModuleNotFoundError: No module named 'tensorflow.contrib'`
Please help
The text was updated successfully, but these errors were encountered:
You can try with tensorflow-gpu==1.15
Sorry, something went wrong.
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) `
No branches or pull requests
Hi I am getting error while running the notebook in line where we are importing
from tensorflow.contrib.layers import apply_regularization, l2_regularizer
`---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
in
15
16 import tensorflow as tf
---> 17 from tensorflow.contrib.layers import apply_regularization, l2_regularizer
18
19 import bottleneck as bn
ModuleNotFoundError: No module named 'tensorflow.contrib'`
Please help
The text was updated successfully, but these errors were encountered: