gigl.src.common.models.pyg.utils#

Attributes#

Functions#

filter_dict(input_dict[, keys_to_keep])

Filters out certain items from an input directory based on keys to keep.

Module Contents#

gigl.src.common.models.pyg.utils.filter_dict(input_dict, keys_to_keep=[])[source]#

Filters out certain items from an input directory based on keys to keep.

Parameters:
  • input_dict (Dict[str, Any]) – Input dictionary.

  • keys_to_keep (Iterable[str]) – Iterable of keys to keep from the input dictionary (all others will be discarded).

Returns:

Dictionary containing the remaining keyword arguments. discarded_kwargs: Dictionary containing the discarded keyword arguments.

Return type:

remaining_kwargs

gigl.src.common.models.pyg.utils.MESSAGE_PASSING_BASE_CLS_ARGS[source]#