benchmark/code/recnn/utils.py
def save_dict_list_to_json(d, json_path):
    """Saves dict of floats in json file
    Args:
        d: (dict) of float-castable values (np.float, int, float, etc.)
        json_path: (string) path to json file
    """
    with open(json_path, 'w') as f:
        # We need to convert the values to float for json (it doesn't accept
        # np.array, np.float, )
        json.dump(d, f, indent=4)
Saves dict of floats in json file
    Args:
        d: (dict) of float-castable values (np.float, int, float, etc.)
        json_path: (string) path to json file
    
Saves dict of floats in json file
Saves dict of floats in json file
def save_dict_list_to_json(d, json_path):
    with open(json_path, 'w') as f:
        json.dump(d, f, indent=4)
def save_dict_list_to_json ( d , json_path ) : with open ( json_path , 'w' ) as f : json . dump ( d , f , indent = 4 )
Saves dict of floats in json file
Saves dict of floats in json file
"""Saves dict of floats in json file
    Args:
        d: (dict) of float-castable values (np.float, int, float, etc.)
        json_path: (string) path to json file
    """ # We need to convert the values to float for json (it doesn't accept # np.array, np.float, )
d
(dict) of float-castable values (np.float, int, float, etc.)
( dict ) of float - castable values ( np . float int float etc . )
json_path
(string) path to json file
( string ) path to json file