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
9c8ad52d
Commit
9c8ad52d
authored
Aug 06, 2018
by
rusty1s
Browse files
reset
parent
de930090
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.travis.yml
.travis.yml
+1
-1
cpu/dim_apply.h
cpu/dim_apply.h
+2
-2
No files found.
.travis.yml
View file @
9c8ad52d
...
...
@@ -9,7 +9,7 @@ matrix:
install
:
-
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.
0
-cp36-cp36m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.
1
-cp36-cp36m-linux_x86_64.whl; fi
-
pip install pycodestyle
-
pip install flake8
-
pip install codecov
...
...
cpu/dim_apply.h
View file @
9c8ad52d
...
...
@@ -17,7 +17,7 @@
auto TENSOR3##_stride = TENSOR3.stride(DIM); \
\
auto dims = TENSOR1.dim(); \
auto zeros = at::zeros(torch::CPU(at::kLong)
, {dims}
); \
auto zeros = at::zeros(
dims,
torch::CPU(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(torch::CPU(at::kLong)
, {dims}
); \
auto zeros = at::zeros(
dims,
torch::CPU(at::kLong));
\
auto counter = zeros.data<int64_t>(); \
bool has_finished = false; \
\
...
...
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