I develop a model with tf.compat.v1.estimator.experimental.KMeans for convert tf.lite version.(Because I will use this model on a mobile app).
When I want to save this model, it asks me for a function like below;
export_saved_model(
export_dir_base,
serving_input_receiver_fn,
assets_extra=None,
as_text=False,
checkpoint_path=None,
experimental_mode=ModeKeys.PREDICT
)
I don’t understand this func: serving_input_receiver_fn, can you please help
GitHub : AIforGraduationProject/Untitled.ipynb at main · kadirdundar/AIforGraduationProject · GitHub
documentation: https://www.tensorflow.org/api_docs/python/tf/compat/v1/estimator/experimental/KMeans#get_variable_names