Skip to content

Commit e55e833

Browse files
Fix compilation errors occurring when building with PyTorch-nightly (rusty1s#305)
1 parent ed2af8e commit e55e833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ SPARSE_API int64_t cuda_version() noexcept {
3838
} // namespace sparse
3939

4040
static auto registry = torch::RegisterOperators().op(
41-
"torch_sparse::cuda_version", &sparse::cuda_version);
41+
"torch_sparse::cuda_version", [] { return sparse::cuda_version(); });

0 commit comments

Comments
 (0)