Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hyp1231 authored Oct 18, 2023
2 parents ef1eb62 + ebb0136 commit 8e755af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
python-version: [3.9]
torch-version: [1.11.0]
torch-version: [2.0.0]
defaults:
run:
shell: bash -l {0}
Expand All @@ -39,12 +39,7 @@ jobs:
pip install torch==${{ matrix.torch-version}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch-scatter==2.0.9 torch-sparse==0.6.15 torch-cluster==1.6.0 torch-spline-conv==1.2.1 torch-geometric -f https://data.pyg.org/whl/torch-${{ matrix.torch-version }}+cpu.html
pip install recbole==1.1.1
conda list
conda install -c conda-forge faiss-cpu
conda install -c conda-forge libstdcxx-ng
sudo rm /usr/lib/x86_64-linux-gnu/libstdc++.so.6
sudo ln -s /home/linuxbrew/.linuxbrew/Cellar/gcc/12.2.0/lib/gcc/12/libstdc++.so.6.0.30 /usr/lib/x86_64-linux-gnu/libstdc++.so.6
pip install setuptools==59.5.0
# Use "python -m pytest" instead of "pytest" to fix imports
- name: Test model
run: |
Expand Down
3 changes: 1 addition & 2 deletions recbole_gnn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ def __init__(self, model=None, dataset=None, config_file_list=None, config_dict=
config_file_list (list of str): the external config file, it allows multiple config files, default is None.
config_dict (dict): the external parameter dictionaries, default is None.
"""
super(Config, self).__init__(model, dataset, config_file_list, config_dict)

if recbole.__version__ == "1.1.1":
self.compatibility_settings()
super(Config, self).__init__(model, dataset, config_file_list, config_dict)

def compatibility_settings(self):
import numpy as np
Expand Down

0 comments on commit 8e755af

Please sign in to comment.