"vscode:/vscode.git/clone" did not exist on "8c661ea586bf11cb2440da740dd3c4cf84679b85"
Unverified Commit 95142b84 authored by Andrei Ivanov's avatar Andrei Ivanov Committed by GitHub
Browse files

[GraphBolt] Fixing two issues in GraphBolt tests. (#7059)


Co-authored-by: default avatarRhett Ying <85214957+Rhett-Ying@users.noreply.github.com>
parent af0b63ed
......@@ -269,7 +269,7 @@ def genereate_raw_data_for_hetero_dataset(
# Generate train/test/valid set.
os.makedirs(os.path.join(test_dir, "set"), exist_ok=True)
user_ids = torch.arange(num_nodes["user"])
np.random.shuffle(user_ids)
np.random.shuffle(user_ids.numpy())
num_train = int(num_nodes["user"] * 0.6)
num_validation = int(num_nodes["user"] * 0.2)
num_test = num_nodes["user"] - num_train - num_validation
......
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