pyg-nightly 2.7.0.dev20241126__py3-none-any.whl → 2.7.0.dev20241128__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyg-nightly
3
- Version: 2.7.0.dev20241126
3
+ Version: 2.7.0.dev20241128
4
4
  Summary: Graph Neural Network Library for PyTorch
5
5
  Keywords: deep-learning,pytorch,geometric-deep-learning,graph-neural-networks,graph-convolutional-networks
6
6
  Author-email: Matthias Fey <matthias@pyg.org>
@@ -1,4 +1,4 @@
1
- torch_geometric/__init__.py,sha256=byc0Xe43_b_bDlW1ufoO-jvXP0Uu6SzYXuRtGKXmqyw,1904
1
+ torch_geometric/__init__.py,sha256=jJtzPYGZJV3trqTP8JJJ6xPQHR1sgYgTX5EkaiJr8Xg,1904
2
2
  torch_geometric/_compile.py,sha256=f-WQeH4VLi5Hn9lrgztFUCSrN_FImjhQa6BxFzcYC38,1338
3
3
  torch_geometric/_onnx.py,sha256=V9ffrIKSqhDw6xUZ12lkuSfNs48cQp2EeJ6Z19GfnVw,349
4
4
  torch_geometric/backend.py,sha256=lVaf7aLoVaB3M-UcByUJ1G4T4FOK6LXAg0CF4W3E8jo,1575
@@ -505,7 +505,7 @@ torch_geometric/profile/profile.py,sha256=cHCY4U0XtyqyKC5u380q6TspsOZ5tGHNXaZsKu
505
505
  torch_geometric/profile/profiler.py,sha256=rfNciRzWDka_BgO6aPFi3cy8mcT4lSgFWy-WfPgI2SI,16891
506
506
  torch_geometric/profile/utils.py,sha256=7h6vzTzW8vv-ZqMOz2DV8HHNgC9ViOrN7IR9d3BPDZ8,5497
507
507
  torch_geometric/sampler/__init__.py,sha256=0h_xJ7CQnlTxF5hUpc81WPQ0QaBtouG8eKK1RzPGA-s,512
508
- torch_geometric/sampler/base.py,sha256=zr9_-suQEDNrKacvERS0dEOlKciVnux0JZkx2sRkW-U,26512
508
+ torch_geometric/sampler/base.py,sha256=kT6hYM6losYta3pqLQlqiqboJiujLy6RlH8qM--U_wg,26970
509
509
  torch_geometric/sampler/hgt_sampler.py,sha256=UAm8_wwzEcziKDJ8-TnfZh1705dXRsy_I5PKhZSDTK8,2721
510
510
  torch_geometric/sampler/neighbor_sampler.py,sha256=MAVphWqNf0-cwlHRvdiU8de86dBxwjm3Miam_6s1ep4,33971
511
511
  torch_geometric/sampler/utils.py,sha256=RJtasO6Q7Pp3oYEOWrbf2DEYuSfuKZOsF2I7-eJDnoA,5485
@@ -629,6 +629,6 @@ torch_geometric/utils/undirected.py,sha256=H_nfpI0_WluOG6VfjPyldvcjL4w5USAKWu2x5
629
629
  torch_geometric/visualization/__init__.py,sha256=PyR_4K5SafsJrBr6qWrkjKr6GBL1b7FtZybyXCDEVwY,154
630
630
  torch_geometric/visualization/graph.py,sha256=ZuLPL92yGRi7lxlqsUPwL_EVVXF7P2kMcveTtW79vpA,4784
631
631
  torch_geometric/visualization/influence.py,sha256=CWMvuNA_Nf1sfbJmQgn58yS4OFpeKXeZPe7kEuvkUBw,477
632
- pyg_nightly-2.7.0.dev20241126.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
633
- pyg_nightly-2.7.0.dev20241126.dist-info/METADATA,sha256=kYXIEsYg6p5-3FGWoEJAsjfBZTNbsotYFGiCqV6r4JA,62979
634
- pyg_nightly-2.7.0.dev20241126.dist-info/RECORD,,
632
+ pyg_nightly-2.7.0.dev20241128.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
633
+ pyg_nightly-2.7.0.dev20241128.dist-info/METADATA,sha256=eQHssI4sVdbygx-nKt2eRne9KhCcLFUMz-tWGScU9QE,62979
634
+ pyg_nightly-2.7.0.dev20241128.dist-info/RECORD,,
@@ -30,7 +30,7 @@ from .lazy_loader import LazyLoader
30
30
  contrib = LazyLoader('contrib', globals(), 'torch_geometric.contrib')
31
31
  graphgym = LazyLoader('graphgym', globals(), 'torch_geometric.graphgym')
32
32
 
33
- __version__ = '2.7.0.dev20241126'
33
+ __version__ = '2.7.0.dev20241128'
34
34
 
35
35
  __all__ = [
36
36
  'Index',
@@ -425,6 +425,14 @@ class NumNeighbors:
425
425
  else:
426
426
  assert False
427
427
 
428
+ # Confirm that `values` only hold valid edge types:
429
+ if isinstance(self.values, dict):
430
+ edge_types_str = {EdgeTypeStr(key) for key in edge_types}
431
+ invalid_edge_types = set(self.values.keys()) - edge_types_str
432
+ if len(invalid_edge_types) > 0:
433
+ raise ValueError("Not all edge types specified in "
434
+ "'num_neighbors' exist in the graph")
435
+
428
436
  out = {}
429
437
  for edge_type in edge_types:
430
438
  edge_type_str = EdgeTypeStr(edge_type)