Skip to content

Instantly share code, notes, and snippets.

@lakshmanok
Created August 13, 2018 16:11
Show Gist options
  • Select an option

  • Save lakshmanok/e29323bbd3737a98207bed05d6e24ae8 to your computer and use it in GitHub Desktop.

Select an option

Save lakshmanok/e29323bbd3737a98207bed05d6e24ae8 to your computer and use it in GitHub Desktop.
How to serve an embedding trained with Estimators (#2)
EXPORTDIR=./model_trained/export/exporter/
MODELDIR=$(ls $EXPORTDIR | tail -1)
gcloud ml-engine local predict --model-dir=${EXPORTDIR}/${MODELDIR} --json-instances=./test.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment