diff --git a/open_spiel/algorithms/alpha_zero_torch/README.md b/open_spiel/algorithms/alpha_zero_torch/README.md index 821fa133f1..b3debe4f06 100644 --- a/open_spiel/algorithms/alpha_zero_torch/README.md +++ b/open_spiel/algorithms/alpha_zero_torch/README.md @@ -7,6 +7,10 @@ To build and use this implementation, you must set the optional global variables `OPEN_SPIEL_BUILD_WITH_LIBTORCH` and `OPEN_SPIEL_BUILD_WITH_LIBNOP` to `ON` when installing dependencies and building OpenSpiel. +**Note**: Note: there are currently known problems with the C++ PyTorch: +inteferences with pybind11 versions. Until it is properly fixed, please see +[the workaround described here](https://github.com/deepmind/open_spiel/issues/966#issuecomment-1322982393). + Then, to get started, see `examples/alpha_zero_torch_example.cc`. Important note: this implementation was a user contribution (see diff --git a/open_spiel/scripts/global_variables.sh b/open_spiel/scripts/global_variables.sh index 67350d7447..1326ff958c 100644 --- a/open_spiel/scripts/global_variables.sh +++ b/open_spiel/scripts/global_variables.sh @@ -83,8 +83,12 @@ export OPEN_SPIEL_BUILD_WITH_LIBTORCH="${OPEN_SPIEL_BUILD_WITH_LIBTORCH:-"OFF"}" # CUDA 10.2 https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.1.zip # # For C++ Libtorch AlphaZero on macOS we recommend this URL: -# https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.8.0.zip -export OPEN_SPIEL_BUILD_WITH_LIBTORCH_DOWNLOAD_URL="${OPEN_SPIEL_BUILD_WITH_LIBTORCH_DOWNLOAD_URL:-"https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.5.1%2Bcpu.zip"}" +# https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.10.1.zip +# +# Note: there are currently known problems with the C++ PyTorch: inteferences +# with pybind11 versions. Until it is properly fixed, there is a workaround: +# https://github.com/deepmind/open_spiel/issues/966#issuecomment-1322982393 +export OPEN_SPIEL_BUILD_WITH_LIBTORCH_DOWNLOAD_URL="${OPEN_SPIEL_BUILD_WITH_LIBTORCH_DOWNLOAD_URL:-"https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.10.1%2Bcpu.zip"}" # TensorflowCC is a CMake interface to the Tensorflow C++ API. It is used in # C++ AlphaZero. See: https://github.com/deepmind/open_spiel/blob/master/docs/alpha_zero.md