Remove unnecessary HPUHooksInterface method (#145272)

getDefaultHPUGenerator is no longer necessary
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145272
Approved by: https://github.com/ezyang
This commit is contained in:
Miroslaw Oksiucik 2025-01-26 01:06:34 +00:00 committed by PyTorch MergeBot
parent 3cf7874ebe
commit 76bec878da

View File

@ -20,11 +20,6 @@ struct TORCH_API HPUHooksInterface : AcceleratorHooksInterface {
return false;
}
const Generator& getDefaultHPUGenerator(
[[maybe_unused]] DeviceIndex device_index = -1) const {
TORCH_CHECK(false, "Cannot get default HPU generator without HPU backend");
}
Device getDeviceFromPtr(void* /*data*/) const override {
TORCH_CHECK(
false, "Cannot get device of pointer on HPU without HPU backend");