Skip to content

Commit

Permalink
Update Tensorflow Install Script
Browse files Browse the repository at this point in the history
  • Loading branch information
omrialmog committed Jun 6, 2022
1 parent fdf1dfd commit d6670d9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions installation_scripts/TensorFlow/tensorflow_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,20 @@ uninstall_py_pkgs()
done
}

###################################################################################################
# install media loader
###################################################################################################

install_media_loader()
{
${PYTHON} -m pip install hpu_media_loader==${__sw_version}.${__build_no} --extra-index-url https://vault.habana.ai/artifactory/api/pypi/gaudi-python/simple ${__python_user_opt}
if [ $? -ne 0 ]; then
echo "Failed to install hpu_media_loader."
echo "${CMDLINE_USAGE}"
exit 1
fi
}

###################################################################################################
# install tf python packages
###################################################################################################
Expand All @@ -336,6 +350,7 @@ install_tf_habana_py_pkgs()
exit 1
fi
done
install_media_loader
}

###################################################################################################
Expand Down Expand Up @@ -516,6 +531,7 @@ install_tf_habana_pkgs()
{
# uninstall Habana TF packages
uninstall_py_pkgs $KNOWN_TF_HABANA_PACKAGES
uninstall_py_pkgs hpu_media_loader
# uninstall any TF in the system
uninstall_py_pkgs $KNOWN_TF_PACKAGES
# make sure that no unknow TF package is still installed
Expand Down

0 comments on commit d6670d9

Please sign in to comment.