mirror of
https://github.com/amazon-science/chronos-forecasting
synced 2026-05-24 01:58:27 +00:00
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.
This commit is contained in:
parent
601d52db75
commit
f49c4ee4b5
1 changed files with 0 additions and 7 deletions
|
|
@ -72,24 +72,17 @@ def get_training_job_info() -> Dict:
|
|||
|
||||
# CUDA info
|
||||
job_info["cuda_available"] = torch.cuda.is_available()
|
||||
print(job_info)
|
||||
if torch.cuda.is_available():
|
||||
job_info["device_count"] = torch.cuda.device_count()
|
||||
print(job_info)
|
||||
|
||||
job_info["device_names"] = {
|
||||
idx: torch.cuda.get_device_name(idx)
|
||||
for idx in range(torch.cuda.device_count())
|
||||
}
|
||||
print(job_info)
|
||||
|
||||
print(torch.cuda.mem_get_info(device=0))
|
||||
print(torch.cuda.mem_get_info(device=1))
|
||||
job_info["mem_info"] = {
|
||||
idx: torch.cuda.mem_get_info(device=idx)
|
||||
for idx in range(torch.cuda.device_count())
|
||||
}
|
||||
print(job_info)
|
||||
|
||||
# DDP info
|
||||
job_info["torchelastic_launched"] = dist.is_torchelastic_launched()
|
||||
|
|
|
|||
Loading…
Reference in a new issue