mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[Profiler][HPU] Enable profiler.key_averages().table() for HPU devices (#150770)
Fixes #150769 Pull Request resolved: https://github.com/pytorch/pytorch/pull/150770 Approved by: https://github.com/sraikund16, https://github.com/jeromean
This commit is contained in:
parent
85ada5d6dd
commit
6c7336cb31
|
|
@ -609,6 +609,7 @@ class FunctionEvent(FormattedTimesMixin):
|
|||
DeviceType.CUDA,
|
||||
DeviceType.PrivateUse1,
|
||||
DeviceType.MTIA,
|
||||
DeviceType.HPU,
|
||||
]
|
||||
return self.time_range.elapsed_us()
|
||||
|
||||
|
|
@ -633,6 +634,7 @@ class FunctionEvent(FormattedTimesMixin):
|
|||
DeviceType.CUDA,
|
||||
DeviceType.PrivateUse1,
|
||||
DeviceType.MTIA,
|
||||
DeviceType.HPU,
|
||||
]
|
||||
return self.device_time_total
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user