Created
July 21, 2019 02:11
-
-
Save jordan-chalupka/a5e9c61defa55a817bb96e42ae343d9c to your computer and use it in GitHub Desktop.
Tensorflow helloworld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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