mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-04 19:44:23 +08:00
Removing the warning that appears in the Graph Transformer example (#6061)
This commit is contained in:
@@ -181,7 +181,7 @@ if __name__ == "__main__":
|
||||
evaluator = Evaluator("ogbg-molhiv")
|
||||
# laplacian positional encoding
|
||||
for g, _ in tqdm(dataset, desc="Computing Laplacian PE"):
|
||||
g.ndata["PE"] = dgl.laplacian_pe(g, k=pos_enc_size, padding=True)
|
||||
g.ndata["PE"] = dgl.lap_pe(g, k=pos_enc_size, padding=True)
|
||||
|
||||
# Create model.
|
||||
out_size = dataset.num_tasks
|
||||
|
||||
Reference in New Issue
Block a user