Handle warning in torchscript (#27154)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27154
Fix for #25859
* #28283 Fix clang-tidy errors in csrc/Module.cpp
Test Plan: Imported from OSS
Differential Revision: D18249631
Pulled By: albanD
fbshipit-source-id: 4e9bbad07cc39e7c7f0546ef7587bd4ab2dd644e