Polo123 commited on
Commit
4f0ec5a
1 Parent(s): c317bc5

Update logic2.py

Browse files
Files changed (1) hide show
  1. logic2.py +2 -2
logic2.py CHANGED
@@ -67,10 +67,10 @@ def load_hetero_data():
67
  data = pickle.load(file)
68
  return data
69
 
70
- def load_model(train_data, val_data, test_data):
71
  model = Model(hidden_channels=32)
72
  with torch.no_grad():
73
- model.encoder(train_data.x_dict, train_data.edge_index_dict)
74
  model.load_state_dict(torch.load('model.pt',map_location=torch.device('cpu')))
75
  model.eval()
76
  return model
 
67
  data = pickle.load(file)
68
  return data
69
 
70
+ def load_model(data):
71
  model = Model(hidden_channels=32)
72
  with torch.no_grad():
73
+ model.encoder(data.x_dict, data.edge_index_dict)
74
  model.load_state_dict(torch.load('model.pt',map_location=torch.device('cpu')))
75
  model.eval()
76
  return model