@@ -11,20 +11,20 @@ The following steps describe the easiest way to install and access the `Tensorfl
.. note::
In the instructions below, loading both Tensroflow and PyTorch relies on the `PYTHONPATH` environment variable. In principle, this could cause conflicts, but the packages have been compiled and organized by Intel such that no conflicts should arise and both of them can safely be loaded and used at the same time.
In the instructions below, loading both Tensroflow and PyTorch relies on the *PYTHONPATH* environment variable. In principle, this could cause conflicts, but the packages have been compiled and organized by Intel such that no conflicts should arise and both of them can safely be loaded and used at the same time.
Install and run Tensorflow
--------------------------
To install Tensorflow locally, use your preferred package manager (requires priviledges)::
To install Tensorflow locally, use your preferred package manager (requires root priviledges)::
# dnf install intel-oneapi-tensorflow
The simplest way to make Tensorflow discoverable is to use::
This will run a simple ML example and output the results into a *.out* file. There are also a number of other example scripts under the */opt/software/cases/python/intel/pytorch* directory.
Using Torchvision
-----------------
You can also install and use `Torchvision <https://pytorch.org/vision/stable/index.html>`_ along with Intel oneAPI libraries by installing it via ``pip``. However, in doing so you need to make sure that you are using the ``pip`` executable which is connected to the Tensorflow installation. In other words, your `PATH` needs to point to the directory `<tensorflow-root>/latest/bin`, where `<tensorflow-root>` is the main directory of your Tensorflow installation, such as `/opt/intel/oneapi/tensorflow` (default, and on Discoverer). If this is not the case, you should run::
You can also install and use `Torchvision <https://pytorch.org/vision/stable/index.html>`_ along with Intel oneAPI libraries by installing it via ``pip``. However, in doing so you need to make sure that you are using the ``pip`` executable which is connected to the Tensorflow installation. In other words, your *PATH* needs to point to the directory *<tensorflow-root>/latest/bin*, where *<tensorflow-root>* is the main directory of your Tensorflow installation, such as */opt/intel/oneapi/tensorflow* (default, and on Discoverer). If this is not the case, you should run::