Currently we have a model that we are going to use for our API using Tensorflow Serving. Therefore we need to transform the current API input data into the features. As the creation of the model and the usage of the model are performed in two different repos, and I don't want to have the transformations in two different repos (to keep them the same for both repos), I was reading about Tensorflow Transform to be able to use 1 function to processed both the training data and the serving data. However, I find it hard to understand how it would work in production. When I save the model, can I include saving the preprocessing function? Or where can I "host" this preprocessing function?
So to be clear, I have a model that preprocesses the training data. And I want to use the same function for the serving data.