I am training a DNNLinearCombinedClassifier and serving it for low latency predictions through tensorflow-serving. The current serving signature expects a serialized tf.example.
I want to be able to export the same model with multiple serving_fn, since I want to change the expected data format.
I cannot use the ServingInputReceiver receiver_tensors_alternatives because I need to apply slightly different transformation to my features depending on the provided data format. These transformations are mostly reshaping my features.
Is there any way to export a model providing multiple different ServingInputReceivers?
tf.kerasandtf.keras.layers.experimental.preprocessing- DachuanZhaotf.keras.layers.experimental.preprocessingcan be used here? - Martin Bomiotf.keras.Input+tf.keras.layers.experimental.preprocessingto replaceinput_fn. - DachuanZhao