gigl.src.common.models.pyg.utils#
Attributes#
Functions#
|
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