Contents of articles
Problem description solution references
Problem description
When you pull the model trained by the server to your own computer, tensorflow loads the model and reports an error valueerror: unknown layer: functional
error
import tensorflow as tf
model = tf.keras.models.load_model('test.h5')
The server
python 3.6.13
tensorflow-gpu==2.3.0
Own computer
python 3.6.5
tensorflow-gpu==2.1.0
Solution
pip install tensorflow-gpu==2.3.0
References
- Value
Read More:
- ValueError: Unknown label type: ‘unknown‘
- Record a problem of no module named ‘tensorflow. Examples’ and’ tensorflow. Examples. Tutorials’ in tensorflow 2.0
- Tensorflow error in Windows: failed call to cuinit: CUDA_ ERROR_ UNKNOWN
- Layer loading failed! Exception from HResult: 0x80040228
- Tensorflow ValueError: Failed to convert a NumPy array to a Tensor
- Error in data training: valueerror: unknown label type: ‘continuous‘
- When calling time module – time / datetime in wxPython, an error is reported. Valueerror: unknown locale: zh cn
- AttributeError: Can‘t get attribute ‘LeNet‘ on <module ‘__ main__ “From (error in torch loading model)
- The function of flatten layer in deep learning
- Tensorflow error: module ‘tensorflow’ has no attribute ‘xxx’
- TypeError(‘Keyword argument not understood:‘, ‘***‘) in keras.models load_model
- Using pip to install tensorflow: tensorflow — is not a supported wheel on this platform
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Tensorflow error: attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ (‘pack ‘)
- To solve the problem of importerror when installing tensorflow: libcublas.so . 10.0, failed to load the native tensorflow runtime error
- Keras saves save() and save in the model_ weights()
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- Tensorflow reported an error when using session module: attributeerror: module ‘tensorflow’ has no attribute ‘session’, which has been solved
- AttributeError: module…ops‘ has no attribute ‘_TensorLike‘, ValueError: `updates` argument..eager