()
| 305 | |
| 306 | |
| 307 | def parse_args(): |
| 308 | parser = argparse.ArgumentParser( |
| 309 | description="Which dataset are you going to use?" |
| 310 | ) |
| 311 | parser.add_argument( |
| 312 | "--epochs", type=int, default=9999999, help="Number of training epochs." |
| 313 | ) |
| 314 | parser.add_argument( |
| 315 | "--lr", |
| 316 | type=float, |
| 317 | default=0.001, |
| 318 | help="Learning rate for optimization.", |
| 319 | ) |
| 320 | parser.add_argument("--num-hidden", type=int, default=256) |
| 321 | parser.add_argument("--dropout", type=float, default=0.2) |
| 322 | parser.add_argument( |
| 323 | "--batch-size", type=int, default=1024, help="Batch size for training." |
| 324 | ) |
| 325 | parser.add_argument( |
| 326 | "--num-workers", |
| 327 | type=int, |
| 328 | default=0, |
| 329 | help="Number of workers for data loading.", |
| 330 | ) |
| 331 | parser.add_argument( |
| 332 | "--dataset", |
| 333 | type=str, |
| 334 | default="ogbn-products", |
| 335 | choices=[ |
| 336 | "ogbn-arxiv", |
| 337 | "ogbn-products", |
| 338 | "ogbn-papers100M", |
| 339 | "reddit", |
| 340 | "yelp", |
| 341 | "flickr", |
| 342 | ], |
| 343 | ) |
| 344 | parser.add_argument("--root", type=str, default="datasets") |
| 345 | parser.add_argument( |
| 346 | "--fanout", |
| 347 | type=str, |
| 348 | default="10,10,10", |
| 349 | help="Fan-out of neighbor sampling. len(fanout) determines the number of" |
| 350 | " GNN layers in your model. Default: 10,10,10", |
| 351 | ) |
| 352 | parser.add_argument( |
| 353 | "--mode", |
| 354 | default="pinned-pinned-cuda", |
| 355 | choices=[ |
| 356 | "cpu-cpu-cpu", |
| 357 | "cpu-cpu-cuda", |
| 358 | "cpu-pinned-cuda", |
| 359 | "pinned-pinned-cuda", |
| 360 | "cuda-pinned-cuda", |
| 361 | "cuda-cuda-cuda", |
| 362 | ], |
| 363 | help="Graph storage - feature storage - Train device: 'cpu' for CPU and" |
| 364 | " RAM, 'pinned' for pinned memory in RAM, 'cuda' for GPU and GPU memory.", |
no outgoing calls
no test coverage detected