Home / Function/ cpp_impl() — pytorch Function Reference

cpp_impl() — pytorch Function Reference

Architecture documentation for the cpp_impl() function in generate_kernels.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  d70d5462_0665_23fb_50f5_9d7601927e86["cpp_impl()"]
  cf8c3f88_b084_0f1e_7da0_062b1278122e["cpp_impl()"]
  cf8c3f88_b084_0f1e_7da0_062b1278122e -->|calls| d70d5462_0665_23fb_50f5_9d7601927e86
  cf8c3f88_b084_0f1e_7da0_062b1278122e["cpp_impl()"]
  d70d5462_0665_23fb_50f5_9d7601927e86 -->|calls| cf8c3f88_b084_0f1e_7da0_062b1278122e
  style d70d5462_0665_23fb_50f5_9d7601927e86 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

aten/src/ATen/native/transformers/cuda/mem_eff_attention/kernels/generate_kernels.py lines 217–223

    def cpp_impl(self) -> str:
        return KERNEL_IMPL_TEMPLATE.format(
            CPP_CLASS=self.cpp_class,
            NAME=self.name,
            SM=self.sm_range[0],
            SM_MAX=self.sm_range[1],
        )

Subdomains

Calls

Called By

Frequently Asked Questions

What does cpp_impl() do?
cpp_impl() is a function in the pytorch codebase.
What does cpp_impl() call?
cpp_impl() calls 1 function(s): cpp_impl.
What calls cpp_impl()?
cpp_impl() is called by 1 function(s): cpp_impl.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free