Skip to content

Instantly share code, notes, and snippets.

@emedvedev
Last active Jan 4, 2018
Embed
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 {
log.Fatal(err)
}
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