TensorFlow-DirectML-C-API-Samples contains samples that show how to use the TensorFlow C API with the tensorflow-directml library.
- Install the latest version of CMake (CMake >= 3.20 is required)
- Install the latest version of the Visual Studio build tools or any other versions of Visual Studio
- Run the following commands:
.\build.ps1
cd build
.\infer_squeezenet_model.exe
- Install the latest version of CMake (CMake >= 3.20 is required)
- Install the latest version of clang (e.g. on Ubuntu
apt update && apt install clang
) - Run the following commands:
./build.sh
cd build
./infer_squeezenet_model