mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Fix clang-tidy bugprone* warnings (#148529)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/148529 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
3f920f3d8f
commit
07bb097698
@ -817,6 +817,7 @@ static PyObject* THPVariable_get_python_dispatch(
|
||||
// - static Tensor fn(const Tensor&);
|
||||
// - This function calls the relevant ATen on the tensor
|
||||
template <typename T>
|
||||
// NOLINTNEXTLINE(bugprone-crtp-constructor-accessibility)
|
||||
struct GetterBase {
|
||||
static PyObject* getter(THPVariable* self, void* /*unused*/) {
|
||||
HANDLE_TH_ERRORS
|
||||
|
Reference in New Issue
Block a user