Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed Aug 27, 2024
1 parent 347ad62 commit 71af06e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sky/clouds/service_catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,12 @@ def get_accelerators_from_instance_type_impl(
acc_name, acc_count = row['AcceleratorName'], row['AcceleratorCount']
if pd.isnull(acc_name):
return None

def _convert(value):
if int(value) == value:
return int(value)
return float(value)

return {acc_name: _convert(acc_count)}


Expand Down

0 comments on commit 71af06e

Please sign in to comment.