Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion optimum/habana/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def to_gb_rounded(mem: float) -> float:
Returns:
float: memory in GB rounded to the second decimal
"""
return np.round(mem / 1024**3, 2)
return float(np.round(mem / 1024**3, 2))


def get_hpu_memory_stats(device=None) -> Dict[str, float]:
Expand Down
Loading