()
| 10 | from result import * |
| 11 | |
| 12 | def main(): |
| 13 | # Parse the command line arguments |
| 14 | cfg = parse_args(description='Invokes TensorBoard for visualizing statistics of a training result.') |
| 15 | |
| 16 | result_dir = get_result_dir(cfg) |
| 17 | if not os.path.isdir(result_dir): |
| 18 | error('result does not exist') |
| 19 | |
| 20 | # Run TensorBoard |
| 21 | log_dir = os.path.join(result_dir, 'log') |
| 22 | os.system('tensorboard --logdir=' + log_dir) |
| 23 | |
| 24 | if __name__ == '__main__': |
| 25 | main() |
no test coverage detected