"vscode:/vscode.git/clone" did not exist on "e4f6c3799dc8aa9b14681785674382906af784b4"
Commit 7e5277b1 authored by rusty1s's avatar rusty1s
Browse files

typo

parent c78c4cd8
import torch import torch
def node_degree(edge_index, n, out=None): def node_degree(edge_index, num_nodes, out=None):
zero = torch.zeros(n, out=out) zero = torch.zeros(num_nodes, out=out)
one = torch.ones(edge_index.size(1), out=zero.new()) one = torch.ones(edge_index.size(1), out=zero.new())
return zero.scatter_add_(0, edge_index[0], one) return zero.scatter_add_(0, edge_index[0], one)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment