From 4d348e53214a2852ee5bdf22bae12dc3ac493877 Mon Sep 17 00:00:00 2001 From: hsharif3 <hsharif3@illinois.edu> Date: Sat, 20 Mar 2021 01:53:36 +0000 Subject: [PATCH] Update Keras README to include conda step --- hpvm/projects/keras/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hpvm/projects/keras/README.md b/hpvm/projects/keras/README.md index 93ef970bab..3fd8eb79fc 100644 --- a/hpvm/projects/keras/README.md +++ b/hpvm/projects/keras/README.md @@ -5,6 +5,21 @@ * python == 3.6.x * pip >= 9 +If your system uses a different Python version, we recommend using the conda environment `keras_python36.yml`. Install this using: + +``` +conda env create -f keras_python36.yml --name keras_python36 +``` + +Activate the conda environment before installing the pip package (below) using: + +``` +conda activate keras_python36 +``` + +**NOTE:** This step must be performed each time (for each shell process) the frontend is to be used. + + ## Installing the Keras Frontend Package At the root of this project (`/projects/keras/`) install the Keras frontend pip package as: @@ -13,6 +28,8 @@ At the root of this project (`/projects/keras/`) install the Keras frontend pip pip install -e . ``` +**NOTE:** If you are using the conda environment, activate it prior to this step. + ## Keras Benchmarks Keras benchmarks can be found [here](https://gitlab.engr.illinois.edu/llvm/hpvm/-/tree/approx_hpvm_reorg_keras/hpvm/test/dnn_benchmarks/keras) -- GitLab