mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[torch/csrc/onnx] Use nested namespaces (3/N) (#113993)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/113993 Approved by: https://github.com/ZainRizvi ghstack dependencies: #113991, #113992
This commit is contained in:
committed by
PyTorch MergeBot
parent
d6744a698c
commit
2efa89a388
@ -4,9 +4,7 @@
|
||||
${generated_comment}
|
||||
*/
|
||||
|
||||
namespace torch {
|
||||
namespace onnx {
|
||||
namespace diagnostics {
|
||||
namespace torch::onnx::diagnostics {
|
||||
|
||||
enum class Rule : uint32_t {
|
||||
${rules}
|
||||
@ -16,6 +14,4 @@ static constexpr const char* const kPyRuleNames [] = {
|
||||
${py_rule_names}
|
||||
};
|
||||
|
||||
} // namespace diagnostics
|
||||
} // namespace onnx
|
||||
} // namespace torch
|
||||
} // namespace torch::onnx::diagnostics
|
||||
|
@ -3,9 +3,7 @@
|
||||
#include <torch/csrc/utils/pybind.h>
|
||||
#include <string>
|
||||
|
||||
namespace torch {
|
||||
namespace onnx {
|
||||
namespace diagnostics {
|
||||
namespace torch::onnx::diagnostics {
|
||||
|
||||
/**
|
||||
* @brief Level of a diagnostic.
|
||||
@ -61,6 +59,4 @@ inline void Diagnose(
|
||||
py_rule, py_level, py_message, "cpp_stack"_a = true);
|
||||
}
|
||||
|
||||
} // namespace diagnostics
|
||||
} // namespace onnx
|
||||
} // namespace torch
|
||||
} // namespace torch::onnx::diagnostics
|
||||
|
Reference in New Issue
Block a user