You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to compile torch-sys on arch gcc version 14.1.1, tried gcc 13, no luck, also tried all the combinations of ENV (LIBTORCH_USE_PYTORCH=1|0, LIBTORCH_BYPASS_VERSION_CHECK=1|0) it simply doesn't work. I am keep getting:
cargo:warning=In file included from libtch/torch_api_generated.h:2,
cargo:warning= from libtch/torch_api_generated.cpp:2:
cargo:warning=libtch/torch_api_generated.cpp: In function ‘void atg__cslt_sparse_mm(at::Tensor**, tensor, tensor, tensor, int)’:
cargo:warning=libtch/torch_api_generated.cpp:640:104: error: invalid initialization of reference of type ‘const std::optional<at::Tensor>&’ from expression of type ‘bool’
cargo:warning= 640 | auto outputs__ = torch::_cslt_sparse_mm(*compressed_A, *dense_B, (bias ? *bias : torch::Tensor()), (bool)transpose_result);
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~
cargo:warning=libtch/torch_api.h:19:5: note: in definition of macro ‘PROTECT’
cargo:warning= 19 | x \
cargo:warning= | ^
libtorch is maunally downloaded (version 2.3.0) and specified in LIBTORCH env during cargo build. Tried with cuda or without cuda - same error
The text was updated successfully, but these errors were encountered:
Each version of tch/torch-sys is only compatible with a single version of libtorch. For 0.14.0, the matching libtorch version is 2.1.0 which probably explains the original error, 0.16.0 should be the version to use with libtorch 2.3.0.
torch-sys is 0.14.0
Unable to compile torch-sys on arch gcc version 14.1.1, tried gcc 13, no luck, also tried all the combinations of ENV (LIBTORCH_USE_PYTORCH=1|0, LIBTORCH_BYPASS_VERSION_CHECK=1|0) it simply doesn't work. I am keep getting:
libtorch is maunally downloaded (version 2.3.0) and specified in LIBTORCH env during cargo build. Tried with cuda or without cuda - same error
The text was updated successfully, but these errors were encountered: