From 2b09a29c80a5c7340b8346128b2ea36b9034063f Mon Sep 17 00:00:00 2001 From: Jeffrey Huynh Date: Sun, 1 Dec 2019 20:55:51 -0800 Subject: [PATCH] Cleanup plus documenting fix for TF conda update --- docs/mxnet-neuron/tutorial-compile-infer.md | 4 ++-- docs/tensorflow-neuron/tutorial-compile-infer.md | 2 +- release-notes/dlami-release-notes.md | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/mxnet-neuron/tutorial-compile-infer.md b/docs/mxnet-neuron/tutorial-compile-infer.md index fdc842d6..c0ccdcd0 100644 --- a/docs/mxnet-neuron/tutorial-compile-infer.md +++ b/docs/mxnet-neuron/tutorial-compile-infer.md @@ -74,11 +74,11 @@ mx.test_utils.download(path+'resnet/50-layers/resnet-50-0000.params') mx.test_utils.download(path+'resnet/50-layers/resnet-50-symbol.json') sym, args, aux = mx.model.load_checkpoint('resnet-50', 0) - # Compile for Inferentia using Neuron +# Compile for Inferentia using Neuron inputs = { "data" : mx.nd.ones([1,3,224,224], name='data', dtype='float32') } sym, args, aux = mx.contrib.neuron.compile(sym, args, aux, inputs) - #save compiled model +#save compiled model mx.model.save_checkpoint("resnet-50_compiled", 0, sym, args, aux) ``` diff --git a/docs/tensorflow-neuron/tutorial-compile-infer.md b/docs/tensorflow-neuron/tutorial-compile-infer.md index 61621725..1c4969a9 100644 --- a/docs/tensorflow-neuron/tutorial-compile-infer.md +++ b/docs/tensorflow-neuron/tutorial-compile-infer.md @@ -142,7 +142,7 @@ infa_rslts = predictor_inferentia(model_feed_dict); print(resnet50.decode_predictions(infa_rslts["output"], top=5)[0]) ``` -3.5. Unzip the mode, download the example image and run the inference: +3.5. Unzip the model, download the example image and run the inference: ```bash unzip resnet50_neuron.zip curl -O https://raw.githubusercontent.com/awslabs/mxnet-model-server/master/docs/images/kitten_small.jpg diff --git a/release-notes/dlami-release-notes.md b/release-notes/dlami-release-notes.md index da0b49c9..05f7d7e1 100644 --- a/release-notes/dlami-release-notes.md +++ b/release-notes/dlami-release-notes.md @@ -26,6 +26,8 @@ tensorflow-model-server-neuron=1.15.0.1.0.663.0 ## Known Issues +In TensorFlow-Neuron conda environment (aws_neuron_tensorflow_p36), a wrong numpy version prevents update to latest conda package version. Please do "conda install numpy=1.17.2" before "conda update tensorflow-neuron". + Please update all packages to most recent release: * Ubuntu: @@ -49,5 +51,6 @@ sudo yum install tensorflow-model-server-neuron source activate aws_neuron_mxnet_p36 conda update mxnet-neuron source activate aws_neuron_tensorflow_p36 +conda install numpy=1.17.2 conda update tensorflow-neuron ```