Hey all!
I think I’m struggling with a core concept here so bare with me! I’ve created a simple model to test my deployment infrastructure. I am using structured data and have followed this guide from the TF site. One of the key steps in model training is converting the data into tensors using tf.data.Dataset.from_tensor_slices
. I understand why this is done but when I have deployed my model and I make a request to the endpoint I have to send my data in the JSON format, not as a tensor. This appears to cause a data type issue.
Do I have to create a preprocessing layer in my model that converts JSON or a dataframe into a Tensor using the above function? I have struggled to find examples of this so any help would be greatly appreciated!
Thanks