"vscode:/vscode.git/clone" did not exist on "ab079f27cf8c8c570d82711d209196e8240d9dd8"
Commit de879592 authored by rusty1s's avatar rusty1s
Browse files

0.4.1

parent e67711ee
[report] [report]
exclude_lines = exclude_lines =
pragma: no cover pragma: no cover
def backward cuda
def bw backward
...@@ -7,12 +7,11 @@ matrix: ...@@ -7,12 +7,11 @@ matrix:
- python: 3.5 - python: 3.5
- python: 3.6 - python: 3.6
install: install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl; fi - 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.0-cp35-cp35m-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 pycodestyle
- pip install flake8 - pip install flake8
- pip install cffi
- pip install codecov - pip install codecov
script: script:
- pycodestyle . - pycodestyle .
......
...@@ -3,7 +3,7 @@ import torch ...@@ -3,7 +3,7 @@ import torch
dtypes = [torch.float, torch.double] dtypes = [torch.float, torch.double]
devices = [torch.device('cpu')] devices = [torch.device('cpu')]
if torch.cuda.is_available(): # pragma: no cover if torch.cuda.is_available():
devices += [torch.device('cuda:{}'.format(torch.cuda.current_device()))] devices += [torch.device('cuda:{}'.format(torch.cuda.current_device()))]
......
...@@ -35,7 +35,7 @@ class SplineWeighting(Function): ...@@ -35,7 +35,7 @@ class SplineWeighting(Function):
return fw(src, weight, basis, weight_index) return fw(src, weight, basis, weight_index)
@staticmethod @staticmethod
def backward(ctx, grad_out): # pragma: no cover def backward(ctx, grad_out):
grad_src = grad_weight = grad_basis = None grad_src = grad_weight = grad_basis = None
src, weight, basis, weight_index = ctx.saved_tensors src, weight, basis, weight_index = ctx.saved_tensors
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment