mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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:
parent
3cf7874ebe
commit
76bec878da
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user