Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-cluster
Commits
82e9df94
Unverified
Commit
82e9df94
authored
Jan 23, 2023
by
Matthias Fey
Committed by
GitHub
Jan 23, 2023
Browse files
PyTorch 2.0 fix (#160)
* update * update
parent
b3d445c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
csrc/version.cpp
csrc/version.cpp
+4
-6
No files found.
csrc/version.cpp
View file @
82e9df94
#ifdef WITH_PYTHON
#include <Python.h>
#endif
#include <torch/script.h>
#include "cluster.h"
#include "macros.h"
#include <torch/script.h>
#ifdef WITH_CUDA
#ifdef USE_ROCM
...
...
@@ -23,7 +23,6 @@ PyMODINIT_FUNC PyInit__version_cpu(void) { return NULL; }
#endif
#endif
namespace
cluster
{
CLUSTER_API
int64_t
cuda_version
()
noexcept
{
#ifdef WITH_CUDA
...
...
@@ -36,8 +35,7 @@ CLUSTER_API int64_t cuda_version() noexcept {
return
-
1
;
#endif
}
}
// namespace sparse
}
// namespace cluster
static
auto
registry
=
torch
::
RegisterOperators
().
op
(
"torch_cluster::cuda_version"
,
&
cluster
::
cuda_version
);
static
auto
registry
=
torch
::
RegisterOperators
().
op
(
"torch_cluster::cuda_version"
,
[]
{
return
cluster
::
cuda_version
();
}
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment