here is my code to freeze a keras model
import tensorflow as tf import tensorflow.compat.v1.keras.backend as K from tensorflow.python.framework import