Reputation: 338
I'm using Tensorflow v2.1.0 which is compiled from source. How can I import any function from conv_utils
module? E.g. convert_data_format()
, conv_output_length()
, normalize_tuple()
, etc.
I wanna create my own convolution/pooling layer. "Everything" almost looks different when I wanna migrate from import keras
to from tensorflow import keras
.
This is what I did
> python -c "from tensorflow.keras.utils import conv_utils"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'conv_utils' from 'tensorflow.keras.utils' ...
Thank you.
Upvotes: 6
Views: 10302
Reputation: 63
This is the new way to import conv_utils in Tensorflow 2.1.0:
import tensorflow.keras.utils as conv_utils
Upvotes: 2