Unverified Commit d1ee3a55 authored by Mingbang Wang's avatar Mingbang Wang Committed by GitHub
Browse files

[Misc] Replace the API to get feature size (#6448)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-39-125.ap-northeast-1.compute.internal>
parent e864f9c5
......@@ -286,10 +286,7 @@ def main(args):
num_classes = dataset.tasks[0].metadata["num_classes"]
# TODO[Mingbang]: Replace this with a more elegant API.
in_size = features.read("node", None, "feat").shape[
1
] # Size of feature of a single node.
in_size = features.size("node", None, "feat")[0]
hidden_size = 128
out_size = num_classes
......
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