mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[2/N] Fix clang-tidy readability checks (#164652)
This PR applies clang-tidy readability checks to jit sources and all headers in the code base. `readability-redundant-inline-specifier` is suppressed because it incurs too many changes. `readability-redundant-inline-specifier` is used to detect redundant inline specifiers on function and variable declarations. There are many in-class method definitions that are marked inline. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164652 Approved by: https://github.com/Skylion007
This commit is contained in:
committed by
PyTorch MergeBot
parent
5178d0a480
commit
3c5ca685d6
@ -87,8 +87,6 @@ using caffe2::serialize::MemoryReadAdapter;
|
||||
using caffe2::serialize::PyTorchStreamReader;
|
||||
using caffe2::serialize::ReadAdapterInterface;
|
||||
|
||||
OpCode parseOpCode(const char* str);
|
||||
|
||||
TypePtr resolveTypeNameMobile(
|
||||
const c10::QualifiedName& qn,
|
||||
const std::shared_ptr<CompilationUnit>& compilation_unit) {
|
||||
@ -216,7 +214,7 @@ class BytecodeDeserializer final {
|
||||
mobile::Function* function);
|
||||
std::shared_ptr<CompilationUnit> compilation_unit_;
|
||||
std::unordered_set<std::string> imported_libs_;
|
||||
std::unique_ptr<PyTorchStreamReader> reader_{};
|
||||
std::unique_ptr<PyTorchStreamReader> reader_;
|
||||
std::optional<at::Device> device_;
|
||||
uint64_t module_load_options_;
|
||||
// From `version` or `.data/version` in model.ptl and it's compute
|
||||
|
Reference in New Issue
Block a user