Skip to content

Commit e51615c

Browse files
Revert "[Profiler][HPU] Fix incorrect availabilities for HPU (pytorch#148663)"
This reverts commit 28b7880. Reverted pytorch#148663 on behalf of https://github.com/ZainRizvi due to Sorry but this is breaking internally. @albanD, could you please help get this relanded? See D71052806 for more details. To validate the fixes internally, you can follow the instructions here: https://fburl.com/fixing-ghfirst-reverts ([comment](pytorch#148663 (comment)))
1 parent b1980b2 commit e51615c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

torch/csrc/autograd/init.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,6 @@ PyObject* THPAutograd_initExtension(PyObject* _unused, PyObject* unused) {
397397
if (at::hasXPU()) {
398398
activities.insert(torch::profiler::impl::ActivityType::XPU);
399399
}
400-
if (at::hasHPU()) {
401-
activities.insert(torch::profiler::impl::ActivityType::HPU);
402-
}
403400
if (at::hasMTIA()) {
404401
activities.insert(torch::profiler::impl::ActivityType::MTIA);
405402
}

0 commit comments

Comments
 (0)