@@ -593,15 +593,15 @@ def _check_bad_arguments(self):
593593 (self .in_dim_edges > 0 ) or (self .full_dims_edges is not None )
594594 ) and not self .layer_class .layer_supports_edges :
595595 raise ValueError (f"Cannot use edge features with class `{ self .layer_class } `" )
596-
596+
597597 def get_nested_key (self , d , target_key ):
598598 """
599599 Get the value associated with a key in a nested dictionary.
600-
600+
601601 Parameters:
602602 - d: The dictionary to search in
603603 - target_key: The key to search for
604-
604+
605605 Returns:
606606 - The value associated with the key if found, None otherwise
607607 """
@@ -653,7 +653,6 @@ def _create_layers(self):
653653
654654 # Find the edge key-word arguments depending on the layer type and residual connection
655655 this_edge_kwargs = {}
656- # import ipdb; ipdb.set_trace()
657656 if self .layer_class .layer_supports_edges and self .in_dim_edges > 0 :
658657 this_edge_kwargs ["in_dim_edges" ] = this_in_dim_edges
659658 if "out_dim_edges" in inspect .signature (self .layer_class .__init__ ).parameters .keys ():
@@ -664,7 +663,6 @@ def _create_layers(self):
664663 this_out_dim_edges = self .get_nested_key (self .layer_kwargs , "out_dim_edges" )
665664 this_edge_kwargs ["out_dim_edges" ] = this_out_dim_edges
666665 layer_out_dims_edges .append (this_out_dim_edges )
667- # import ipdb; ipdb.set_trace()
668666
669667 # Create the GNN layer
670668 self .layers .append (
@@ -683,7 +681,6 @@ def _create_layers(self):
683681
684682 # Create the Virtual Node layer, except at the last layer
685683 if ii < len (residual_out_dims ):
686- # import ipdb; ipdb.set_trace()
687684 self .virtual_node_layers .append (
688685 self .virtual_node_class (
689686 in_dim = this_out_dim * self .layers [- 1 ].out_dim_factor ,
0 commit comments