Skip to content

Commit

Permalink
Change the returned device interface (#3960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stonepia authored Mar 26, 2024
1 parent 17c0d71 commit e842872
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions intel_extension_for_pytorch/_dynamo/device_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,4 @@ def is_available() -> bool:

@staticmethod
def get_compute_capability(device: _device_t = None) -> int:
# TODO :Return 0x80860001 for ATSM
# Currently return 0x80860002 for PVC
# currently, torch.xpu.get_device_capability returns a dict,
# but we want int for now
return 86
# return torch.xpu.get_device_capability(device)
return torch.xpu.get_device_capability(device)

0 comments on commit e842872

Please sign in to comment.