"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ec068f9b5bf7c65f93125ec889e0ff1792a00da1"
Unverified Commit e0c7f959 authored by LastWhisper's avatar LastWhisper Committed by GitHub
Browse files

[GraphBolt] Update the param to make the code consistent (#6491)

parent 9e26c8e3
...@@ -211,7 +211,7 @@ if __name__ == "__main__": ...@@ -211,7 +211,7 @@ if __name__ == "__main__":
dataset = gb.BuiltinDataset("ogbn-products").load() dataset = gb.BuiltinDataset("ogbn-products").load()
datamodule = DataModule( datamodule = DataModule(
dataset, dataset,
[15, 10, 5], [10, 10, 10],
args.batch_size, args.batch_size,
args.num_workers, args.num_workers,
) )
......
...@@ -330,20 +330,20 @@ def parse_args(): ...@@ -330,20 +330,20 @@ def parse_args():
help="Learning rate for optimization.", help="Learning rate for optimization.",
) )
parser.add_argument( parser.add_argument(
"--batch-size", type=int, default=256, help="Batch size for training." "--batch-size", type=int, default=1024, help="Batch size for training."
) )
parser.add_argument( parser.add_argument(
"--num-workers", "--num-workers",
type=int, type=int,
default=4, default=0,
help="Number of workers for data loading.", help="Number of workers for data loading.",
) )
parser.add_argument( parser.add_argument(
"--fanout", "--fanout",
type=str, type=str,
default="15,10,5", default="10,10,10",
help="Fan-out of neighbor sampling. It is IMPORTANT to keep len(fanout)" help="Fan-out of neighbor sampling. It is IMPORTANT to keep len(fanout)"
" identical with the number of layers in your model. Default: 15,10,5", " identical with the number of layers in your model. Default: 10,10,10",
) )
parser.add_argument( parser.add_argument(
"--device", "--device",
...@@ -377,7 +377,7 @@ def main(args): ...@@ -377,7 +377,7 @@ def main(args):
num_classes = dataset.tasks[0].metadata["num_classes"] num_classes = dataset.tasks[0].metadata["num_classes"]
in_size = features.size("node", None, "feat")[0] in_size = features.size("node", None, "feat")[0]
hidden_size = 128 hidden_size = 256
out_size = num_classes out_size = num_classes
model = SAGE(in_size, hidden_size, out_size) model = SAGE(in_size, hidden_size, out_size)
......
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