Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Dec 25, 2024
1 parent ec05139 commit ea0b584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
)
)

if desc_config["num_devices"] == 1:
if desc_config["num_device"] == 1:
print(
"Using device: {}, with {:.2f} GB available memory".format(
desc_config.get("device"), desc_config.get("avail_mem")
)
)
else:
print(f"Using {len(desc_config["devices"])} devices:")
print(f"Using {desc_config["num_device"]} devices:")
for i, dev in enumerate(desc_config["devices"]):
print(
f"\t Device {i}: {dev} with {desc_config["avail_mems"][i]:.2f} "
Expand Down

0 comments on commit ea0b584

Please sign in to comment.