Skip to content

Instantly share code, notes, and snippets.

@csarron
Created December 25, 2018 18:12
Show Gist options
  • Save csarron/682c832cd36e4ecf1402645e851163bc to your computer and use it in GitHub Desktop.
Save csarron/682c832cd36e4ecf1402645e851163bc to your computer and use it in GitHub Desktop.
use feed dict instead of directly pass tensor
embeddings = self.session.run(self.encoding_tensor, feed_dict={
self.input_placeholder: need_compute
})
# si_emb = self.session.run(self.embed([s]))[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment