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-scatter
Commits
522de767
Commit
522de767
authored
Dec 12, 2018
by
rusty1s
Browse files
pytorch 1.0.0 update
parent
e58d83e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
cpu/dim_apply.h
cpu/dim_apply.h
+3
-3
cpu/scatter.cpp
cpu/scatter.cpp
+1
-1
setup.py
setup.py
+1
-1
torch_scatter/__init__.py
torch_scatter/__init__.py
+1
-1
No files found.
cpu/dim_apply.h
View file @
522de767
#pragma once
#include <torch/
torch
.h>
#include <torch/
extension
.h>
#define DIM_APPLY3(TYPE1, TENSOR1, TYPE2, TENSOR2, TYPE3, TENSOR3, DIM, CODE) \
[&] { \
...
...
@@ -17,7 +17,7 @@
auto TENSOR3##_stride = TENSOR3.stride(DIM); \
\
auto dims = TENSOR1.dim(); \
auto zeros = at::zeros(dims,
torch::CPU(at::kLong));
\
auto zeros = at::zeros(dims,
TENSOR1.options().dtype(at::kLong));
\
auto counter = zeros.data<int64_t>(); \
bool has_finished = false; \
\
...
...
@@ -76,7 +76,7 @@
auto TENSOR4##_stride = TENSOR4.stride(DIM); \
\
auto dims = TENSOR1.dim(); \
auto zeros = at::zeros(dims,
torch::CPU(at::kLong));
\
auto zeros = at::zeros(dims,
TENSOR1.options().dtype(at::kLong));
\
auto counter = zeros.data<int64_t>(); \
bool has_finished = false; \
\
...
...
cpu/scatter.cpp
View file @
522de767
#include <torch/
torch
.h>
#include <torch/
extension
.h>
#include "dim_apply.h"
...
...
setup.py
View file @
522de767
...
...
@@ -15,7 +15,7 @@ if CUDA_HOME is not None:
[
'cuda/scatter.cpp'
,
'cuda/scatter_kernel.cu'
])
]
__version__
=
'1.0.
4
'
__version__
=
'1.0.
5
'
url
=
'https://github.com/rusty1s/pytorch_scatter'
install_requires
=
[]
...
...
torch_scatter/__init__.py
View file @
522de767
...
...
@@ -7,7 +7,7 @@ from .std import scatter_std
from
.max
import
scatter_max
from
.min
import
scatter_min
__version__
=
'1.0.
4
'
__version__
=
'1.0.
5
'
__all__
=
[
'scatter_add'
,
...
...
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