main() — pytorch Function Reference
Architecture documentation for the main() function in configure.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 191d2ed0_4efe_328a_47a0_c20839feba6a["main()"] 11f84b4c_0d39_aef3_7b36_bee8532f3af8["sys()"] 11f84b4c_0d39_aef3_7b36_bee8532f3af8 -->|calls| 191d2ed0_4efe_328a_47a0_c20839feba6a style 191d2ed0_4efe_328a_47a0_c20839feba6a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
aten/src/ATen/native/quantized/cpu/qnnpack/deps/clog/configure.py lines 15–30
def main(args):
options = parser.parse_args(args)
build = confu.Build.from_options(options)
build.export_cpath("include", ["clog.h"])
with build.options(source_dir="src", extra_include_dirs="src"):
build.static_library("clog", build.cc("clog.c"))
with build.options(
source_dir="test",
deps={(build, build.deps.googletest): all, "log": build.target.is_android},
):
build.unittest("clog-test", build.cxx("clog.cc"))
return build
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does main() do?
main() is a function in the pytorch codebase.
What calls main()?
main() is called by 1 function(s): sys.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free