Add a dictionary of statistics to a Tensorboard writer Args: dict (dict): Statistics of experiments, the keys are attribute names, the values are the attribute values writer: Tensorboard writer object epoch (int): The current epoch
(dict, writer, epoch)
| 55 | |
| 56 | |
| 57 | def dict_to_tb(dict, writer, epoch): |
| 58 | ''' |
| 59 | Add a dictionary of statistics to a Tensorboard writer |
| 60 | |
| 61 | Args: |
| 62 | dict (dict): Statistics of experiments, the keys are attribute names, |
| 63 | the values are the attribute values |
| 64 | writer: Tensorboard writer object |
| 65 | epoch (int): The current epoch |
| 66 | |
| 67 | ''' |
| 68 | for key in dict: |
| 69 | writer.add_scalar(key, dict[key], epoch) |
| 70 | |
| 71 | |
| 72 | def dict_list_to_tb(dict_list, writer): |
no outgoing calls
no test coverage detected