record_function_with_scope Class — pytorch Architecture
Architecture documentation for the record_function_with_scope class in record_function.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/record_function.h lines 552–566
template <typename Inputs, typename... Args>
void record_function_with_scope(
RecordFunction& guard,
RecordFunction::FunctionDescriptor fn,
const Inputs& inputs,
Args&&... args) {
if (guard.needsInputs()) {
guard.before(
fn,
c10::ArrayRef<const c10::IValue>(inputs.data(), inputs.size()),
std::forward<Args>(args)...);
} else {
guard.before(fn, std::forward<Args>(args)...);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free