I want to run a Tensorflow 2 LinearClassifier on AWS Lambda. I have a trained LinearClassifier tensorflow model. I want to run only the prediction in AWS Lambda, because of cost efficeny.
Currently I'm not sure how to handle it.
- I tried to use normal TF2, but it is too big for AWS Lambda Layers. All descriptions you find are with older TF 1.1x versions and Python 2.x.
- Then I tried TensorflowJS, but it looks like the LinearClassifier using functions which are not implemented in TFJS.
- Last I tried to user Tensorflow Lite, but there I currently have problems to convert my model to TFLite.
Do you have an idea, how I can get TF 2 Estimation of LinearClassifier running on AWS Lambda?
Normally I think not all of the 1.5 GB Tensorflow modules are used for the simple prediction of an existing model. So is there a possibility to only get the files which are used for running the script?