fix tensorflow rocm resolution by installing it from .whl file #609
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to: https://issues.redhat.com/browse/RHOAIENG-9596
Description
We have the following error in ocp-ci and locally, when we try to fetch the tensorflow python package from repo url. :
Most probably, the issue seems to stem from the fact that the custom source URL we are using for tensorflow_rocm does not have the necessary metadata that pipenv uses to resolve and lock dependencies. When pipenv tries to find the specified package in the custom index, it fails because it doesn't find any matching version metadata.
This fix specify the direct URL to the wheel file in the Pipfile instead of using the custom index.
How has been tested
Run the following cmd to spin up the image:
podman run --rm -it -p8888:8888 ghcr.io/atheo89/notebooks/workbench-images:amd-jupyter-tensorflow-c9s-python-3.9-resolve-tensorflow-rocm_3f5325cf541e01dc0b747432bd7ea99dd6614ec6
Create a new notebook and run:
pip show tensorflow_rocm
You should see the following:
Run a test case, where it provided here: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/3rd-party/tensorflow-install.html#running-a-basic-tensorflow-example it should be run successfully
Merge criteria: