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-spline-conv
Commits
4c9ebe9a
Commit
4c9ebe9a
authored
Dec 12, 2018
by
rusty1s
Browse files
pytorch 1.0.0 update
parent
b4d95df1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.travis.yml
.travis.yml
+3
-3
cpu/basis.cpp
cpu/basis.cpp
+1
-1
cpu/weighting.cpp
cpu/weighting.cpp
+1
-1
No files found.
.travis.yml
View file @
4c9ebe9a
...
...
@@ -17,9 +17,9 @@ before_install:
-
export CC="gcc-4.9"
-
export CXX="g++-4.9"
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.1
-cp36-cp36m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http
s
://download.pytorch.org/whl/cpu/torch-
1.0.0
-cp27-cp27mu-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install http
s
://download.pytorch.org/whl/cpu/torch-
1.0.0
-cp35-cp35m-linux_x86_64.whl; fi
-
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install http
s
://download.pytorch.org/whl/cpu/torch-
1.0.0
-cp36-cp36m-linux_x86_64.whl; fi
-
pip install pycodestyle
-
pip install flake8
-
pip install codecov
...
...
cpu/basis.cpp
View file @
4c9ebe9a
#include <torch/
torch
.h>
#include <torch/
extension
.h>
template
<
typename
scalar_t
>
inline
scalar_t
linear
(
scalar_t
v
,
int64_t
k_mod
)
{
return
1
-
v
-
k_mod
+
2
*
v
*
k_mod
;
...
...
cpu/weighting.cpp
View file @
4c9ebe9a
#include <torch/
torch
.h>
#include <torch/
extension
.h>
at
::
Tensor
weighting_fw
(
at
::
Tensor
x
,
at
::
Tensor
weight
,
at
::
Tensor
basis
,
at
::
Tensor
weight_index
)
{
...
...
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