Skip to content

Instantly share code, notes, and snippets.

@sararob
Created August 14, 2018 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sararob/8f109b3b00f85c2bfbffdaf466b130bc to your computer and use it in GitHub Desktop.
Save sararob/8f109b3b00f85c2bfbffdaf466b130bc to your computer and use it in GitHub Desktop.
predict_input_fn = tf.estimator.inputs.numpy_input_fn({"descriptions": np.array(raw_test).astype(np.str)}, shuffle=False)
results = estimator.predict(predict_input_fn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment