I have created an image classification model using TensorFlow and Keras in google colab. It is saved there with GPU versions 1.15 and 2.2.4 for both respectively. Now I want to load them in my remote machine with CPU and versions 1.10 and 2.2.2 I am unable to do that and getting error.This is my first experience with CNN as well as tf and keras so I am not able to figure out what is the exact reason and how to solve this. I have mentioned the code and error below:
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras.models import load_model
from tensorflow.keras.models import model_from_json
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)
Error : ValueError: ('Unrecognized keyword arguments:', dict_keys(['ragged']))