Skip to content

Commit f49c4ee

Browse files
authored
Remove print statements from train.py (#101)
*Description of changes:* Removes print statements that got left inside from a debugging session. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 601d52d commit f49c4ee

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/training/train.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,17 @@ def get_training_job_info() -> Dict:
7272

7373
# CUDA info
7474
job_info["cuda_available"] = torch.cuda.is_available()
75-
print(job_info)
7675
if torch.cuda.is_available():
7776
job_info["device_count"] = torch.cuda.device_count()
78-
print(job_info)
7977

8078
job_info["device_names"] = {
8179
idx: torch.cuda.get_device_name(idx)
8280
for idx in range(torch.cuda.device_count())
8381
}
84-
print(job_info)
85-
86-
print(torch.cuda.mem_get_info(device=0))
87-
print(torch.cuda.mem_get_info(device=1))
8882
job_info["mem_info"] = {
8983
idx: torch.cuda.mem_get_info(device=idx)
9084
for idx in range(torch.cuda.device_count())
9185
}
92-
print(job_info)
9386

9487
# DDP info
9588
job_info["torchelastic_launched"] = dist.is_torchelastic_launched()

0 commit comments

Comments
 (0)