Skip to content

Commit

Permalink
IPUHooksInterface: fix a typo, remove const & (pytorch#111372)
Browse files Browse the repository at this point in the history
Return an `at::Generator` from `newIPUGenerator`, not a reference to one.
Pull Request resolved: pytorch#111372
Approved by: https://github.com/Skylion007
  • Loading branch information
galexite authored and pytorchmergebot committed Oct 16, 2023
1 parent 07f0413 commit c271df9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aten/src/ATen/detail/IPUHooksInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ struct TORCH_API IPUHooksInterface {
"available.");
}

virtual const Generator& newIPUGenerator(
DeviceIndex device_index = -1) const {
virtual Generator newIPUGenerator(DeviceIndex device_index = -1) const {
AT_ERROR(
"Cannot create a new IPU generator: the IPU backend is not available.");
}
Expand Down

0 comments on commit c271df9

Please sign in to comment.