I trained a model from Linux using GPU and save it using model.save('my_model.h5')
.
I have no issue opening the .h5 model in Linux machine with
from keras.models import load_model
model = load_model('my_model.h5')
However, I got issue when I load it on my Mac (which doesn't have GPU, and probably tensorflow is also not the one for GPU version):
OSError: Unable to open file (unable to open file: name = 'model0.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
Same command, same location when I work on jupyter notebook, same location where the .h5 file is stored, same file that I want to load. Does anyone know what's going on?
Thank you in advance.