Skip to content

pickle.load->joblib.load #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: ogb-lsc
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OGB-LSC/graphormer/src/ogb_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pyximport
pyximport.install(setup_args={'include_dirs': np.get_include()})
import algos
import pickle
import joblib

def convert_to_single_emb(x, offset=128):
feature_num = x.size(1) if len(x.size()) > 1 else 1
Expand Down Expand Up @@ -58,7 +58,7 @@ def preprocess_item(item, noise=False):
class MyPygPCQM4MDataset2(MyPygPCQM4MDataset):
def __init__(self, root = 'dataset/mypcq_v4'):
super().__init__(root=root)
self.all_rel_pos_3d = pickle.load(open('dataset/all_rel_pos_3d.pkl', 'rb'))
self.all_rel_pos_3d = joblib.load('dataset/all_rel_pos_3d.pkl')

def download(self):
super(MyPygPCQM4MDataset2, self).download()
Expand Down