Lab to illustrate working with TensorFlow using an Amazon Deep Learning AMI (DLAMI)
This demo illustrates working with TensorFlow using an Amazon Deep Learning AMI (DLAMI). It includes:
src/basics.py
- Understand basic operations in TensorFlowsrc/nn.py
- Create a small neural network regression model in TensorFlowsrc/nn_with_summaries.py
- Show how to augment code with TensorFlow summaries to visualize the graph and learning process in TensorBoardsrc/nn_export.py
- Illustrates how to save a TensorFlow model to disk so that it can be served by TensorFlow Servingsrc/nn_client.py
- Example of how to consume the model served by TensorFlow ServingDeploy the CloudFormation stack in the template in infrastructure/
. The template creates a user with the following credentials and minimal required permisisons to complete the Lab:
jupyter notebook
jupyter notebook list
src/
directorysrc/
directory into a cellsrc/nn_with_summaries.py
in TensorBoard, run the command: tensorboard --logdir /tmp/tensorflow/nn
src/nn_export.py
with TensorFlow Serving, run the command: tensorflow_model_server --port=9000 --model_name=nn --model_base_path=/tmp/nn
Delete the CloudFormation stack to remove all the resources. No resources are created outside of those created by the template.