Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def getEncodedImage(self, image):
encoded_image = self._session.run(self._hidden_layer, feed_dict={self._input_layer:[image]})
return encoded_image
def getDecodedImage(self, image):
decoded_image = self._session.run(self._output_layer, feed_dict={self._input_layer:[image]})
return decoded_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment