sanitize_identifier() — pytorch Function Reference
Architecture documentation for the sanitize_identifier() function in generate_aiter_embedded_hsa.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 99d5bdc9_dcbd_5f9a_63ee_6eb8efa13c7f["sanitize_identifier()"] 5310ab1a_4d49_bba5_ce5f_5012d13322a2["generate_embedded_hsa_header()"] 5310ab1a_4d49_bba5_ce5f_5012d13322a2 -->|calls| 99d5bdc9_dcbd_5f9a_63ee_6eb8efa13c7f style 99d5bdc9_dcbd_5f9a_63ee_6eb8efa13c7f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
aten/src/ATen/native/transformers/hip/flash_attn/ck/fav_v3/generate_aiter_embedded_hsa.py lines 11–13
def sanitize_identifier(name: str) -> str:
"""Convert a file path to a valid C++ identifier."""
return re.sub(r"[^a-zA-Z0-9]", "_", name)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does sanitize_identifier() do?
sanitize_identifier() is a function in the pytorch codebase.
What calls sanitize_identifier()?
sanitize_identifier() is called by 1 function(s): generate_embedded_hsa_header.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free