Skip to content

Commit

Permalink
backward compatibility with torch-sparse==0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jun 17, 2021
1 parent 48eed83 commit a706309
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/building.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,20 @@ jobs:
python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA:', torch.version.cuda)"
- name: Install internal dependencies
- name: Install torch-scatter
run: |
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }}.html
- name: Install METIS
if: ${{ runner.os != 'Windows' }}
run: |
bash .github/workflows/metis.sh
- name: Install METIS on Windows
if: ${{ runner.os == 'Windows' }}
run: |
bash .github/workflows/metis-${{ runner.os }}.sh
- name: Install main package for CPU
if: ${{ matrix.cuda-version == 'cpu' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion csrc/metis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ torch::Tensor partition(torch::Tensor rowptr, torch::Tensor col,
AT_ERROR("Not compiled with CUDA support");
#endif
} else {
return partition_cpu(rowptr, col, optional_value, nullptr, num_parts,
return partition_cpu(rowptr, col, optional_value, torch::nullopt, num_parts,
recursive);
}
}
Expand Down

0 comments on commit a706309

Please sign in to comment.