Skip to content

Instantly share code, notes, and snippets.

@jordan-chalupka
Created July 21, 2019 02:11
Show Gist options
  • Save jordan-chalupka/a5e9c61defa55a817bb96e42ae343d9c to your computer and use it in GitHub Desktop.
Save jordan-chalupka/a5e9c61defa55a817bb96e42ae343d9c to your computer and use it in GitHub Desktop.
Tensorflow helloworld
import tensorflow as tf
def lambda_handler(event, context):
# Simple hello world using TensorFlow
hello = tf.constant('Hello, TensorFlow!')
# Start tf session
sess = tf.Session()
# Run the op
msg = sess.run(hello)
return tf.compat.as_str_any(msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment