MCPcopy Create free account
hub / github.com/pytorch/examples / get_date_of_run

Function get_date_of_run

distributed/FSDP/utils/train_utils.py:19–25  ·  view source on GitHub ↗

create date and time for file save uniqueness example: 2022-05-07-08:31:12_PM'

()

Source from the content-addressed store, hash-verified

17 dist.destroy_process_group()
18
19def get_date_of_run():
20 """create date and time for file save uniqueness
21 example: 2022-05-07-08:31:12_PM'
22 """
23 date_of_run = datetime.now().strftime("%Y-%m-%d-%I:%M:%S_%p")
24 print(f"--> current date and time of run = {date_of_run}")
25 return date_of_run
26
27
28

Callers 1

fsdp_mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected