Polo123 commited on
Commit
5a1f34c
·
verified ·
1 Parent(s): ee78ed6

Update logic2.py

Browse files
Files changed (1) hide show
  1. logic2.py +2 -1
logic2.py CHANGED
@@ -62,11 +62,12 @@ class Model(torch.nn.Module):
62
  #----------------------------------------------
63
  def load_hetero_data():
64
  with open('Hgraph.pkl', 'rb') as file:
 
65
  data = pickle.load(file)
66
  return data
67
 
68
  def load_model(data):
69
- global data
70
  model = Model(hidden_channels=32)
71
  with torch.no_grad():
72
  model.encoder(data.x_dict, data.edge_index_dict)
 
62
  #----------------------------------------------
63
  def load_hetero_data():
64
  with open('Hgraph.pkl', 'rb') as file:
65
+ global data
66
  data = pickle.load(file)
67
  return data
68
 
69
  def load_model(data):
70
+
71
  model = Model(hidden_channels=32)
72
  with torch.no_grad():
73
  model.encoder(data.x_dict, data.edge_index_dict)