File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7
7
import importlib
8
8
import inspect
9
9
import subprocess
10
+ from datetime import datetime
10
11
from typing import Type
11
12
from dataclasses import dataclass , field
12
13
from collections import defaultdict
@@ -518,7 +519,10 @@ def main(args):
518
519
if args .model_path is not None :
519
520
assert os .path .isdir (args .model_path )
520
521
assert is_single_model_dir (args .model_path )
521
- print (f"Collect information for { args .model_path } " )
522
+ timestamp_sec = datetime .now ().timestamp ()
523
+ dt = datetime .fromtimestamp (timestamp_sec )
524
+ formatted_dt = dt .strftime ("%Y-%m-%d %H:%M:%S.%f" )[:- 3 ]
525
+ print (f"[{ formatted_dt } ] Collect information for { args .model_path } " )
522
526
collect_model_stats (args .model_path , args .device , args .log_prompt )
523
527
else :
524
528
graph_net_samples_path = (
You can’t perform that action at this time.
0 commit comments