mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
This PR introduces **-Wmissing-prototypes** of clang-tidy to prevent further coding errors such as the one fixed by PR #96714. <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at fd2cf2a</samp> This pull request makes several internal functions static to improve performance and avoid name clashes. It also fixes some typos, formatting, and missing includes in various files. It adds a new .clang-tidy check to warn about missing prototypes for non-static functions. Pull Request resolved: https://github.com/pytorch/pytorch/pull/96805 Approved by: https://github.com/malfet, https://github.com/albanD
16 lines
467 B
C++
16 lines
467 B
C++
#include <ATen/native/verbose_wrapper.h>
|
|
#include <torch/csrc/utils/pybind.h>
|
|
#include <torch/csrc/utils/verbose.h>
|
|
|
|
namespace torch {
|
|
|
|
void initVerboseBindings(PyObject* module) {
|
|
auto m = py::handle(module).cast<py::module>();
|
|
|
|
auto verbose = m.def_submodule("_verbose", "MKL, MKLDNN verbose");
|
|
verbose.def("mkl_set_verbose", torch::verbose::_mkl_set_verbose);
|
|
verbose.def("mkldnn_set_verbose", torch::verbose::_mkldnn_set_verbose);
|
|
}
|
|
|
|
} // namespace torch
|