Skip to content

Instantly share code, notes, and snippets.

Last active Jan 4, 2018
What would you like to do?
feedsOutput := tf.Output{
Op: savedModel.Graph.Operation("CAPTCHA/input_image_as_bytes"),
Index: 0,
// `buf` is a Buffer with the captcha image fetched from the website
feedsTensor, err := tf.NewTensor(string(buf.String()))
if err != nil {
feeds := map[tf.Output]*tf.Tensor{feedsOutput: feedsTensor}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment