xref: /aosp_15_r20/external/pytorch/aten/src/ATen/Dispatch.cpp (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #include <ATen/Dispatch.h>
2 #if defined ENABLE_RECORD_KERNEL_FUNCTION_DTYPE
3 #include <ATen/record_function.h>
4 
5 namespace at::detail {
6 
record_kernel_function_dtype(std::string name)7 void record_kernel_function_dtype(std::string name) {
8   RECORD_FUNCTION_WITH_SCOPE(
9         at::RecordScope::KERNEL_FUNCTION_DTYPE,
10         std::move(name),
11         c10::ArrayRef<const c10::IValue>{});
12 }
13 
14 }  // namespace at::detail
15 #endif
16